]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Disable irq while unregistering user notifier
authorIgnacio Alvarado <ikalvarado@google.com>
Fri, 4 Nov 2016 19:15:55 +0000 (12:15 -0700)
committerRadim Krčmář <rkrcmar@redhat.com>
Sat, 19 Nov 2016 18:04:04 +0000 (19:04 +0100)
commit9ecaf21a6522a090aaa4960d571b41332562e074
tree57e9892793596c8a0e27fb12cae882b002bd671e
parent47ad9decdf69ade6cd01e951e1ada58e195b4f68
KVM: Disable irq while unregistering user notifier

Function user_notifier_unregister should be called only once for each
registered user notifier.

Function kvm_arch_hardware_disable can be executed from an IPI context
which could cause a race condition with a VCPU returning to user mode
and attempting to unregister the notifier.

Signed-off-by: Ignacio Alvarado <ikalvarado@google.com>
Cc: stable@vger.kernel.org
Fixes: fabc575dbe9c ("KVM: x86 shared msr infrastructure")
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/x86.c