hyperv: Use auto rcu_read macros
commitb66173afbde1d99961e1698f0c957a74bd5bfc5a
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 13 Dec 2019 13:19:30 +0000 (13 13:19 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Dec 2019 18:33:52 +0000 (17 19:33 +0100)
tree093ccdaca075b607df628fb9458c43c74c37a58f
parentd3e07dc83e98127a130a29878c7c652d05eaaf18
hyperv: Use auto rcu_read macros

Use RCU_READ_LOCK_GUARD and WITH_RCU_READ_LOCK_GUARD
to replace the manual rcu_read_(un)lock calls.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/hyperv/hyperv.c