OSDN Git Service

target/arm: kvm: use RCU_READ_LOCK_GUARD() in kvm_arch_fixup_msi_route()
authorHamza Mahfooz <someguy@effective-light.com>
Tue, 27 Jul 2021 23:52:01 +0000 (19:52 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 25 Aug 2021 09:48:50 +0000 (10:48 +0100)
commitdfa0d9b80ed36c3e3a92346c35e7e7b1e4afc49d
tree94321195617449bad57520b2a7eae5adaadd095c
parente5346292966f5348cd36668f2451ca0e44d820b2
target/arm: kvm: use RCU_READ_LOCK_GUARD() in kvm_arch_fixup_msi_route()

As per commit 5626f8c6d468 ("rcu: Add automatically released rcu_read_lock
variants"), RCU_READ_LOCK_GUARD() should be used instead of
rcu_read_{un}lock().

Signed-off-by: Hamza Mahfooz <someguy@effective-light.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20210727235201.11491-1-someguy@effective-light.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/kvm.c