KVM: x86: make vapics_in_nmi_mode atomic
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 1 Jul 2015 13:31:49 +0000 (15:31 +0200)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:09:04 +0000 (13:09 +0000)
commitfc2a5f49d6d900a1dc68bcff63cf9813e1267e36
treeec45fa16592d5660b40b380006117c507e43eeb9
parent8201be036743407f033f20c0f59c594f1aae55d3
KVM: x86: make vapics_in_nmi_mode atomic

commit 42720138b06301cc8a7ee8a495a6d021c4b6a9bc upstream.

Writes were a bit racy, but hard to turn into a bug at the same time.
(Particularly because modern Linux doesn't use this feature anymore.)

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
[Actually the next patch makes it much, much easier to trigger the race
 so I'm including this one for stable@ as well. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c