KVM: x86: make vapics_in_nmi_mode atomic
commit26f6fb3b8eaaca7f35a7b8d86ed5e6eb7592b306
authorRadim Krčmář <rkrcmar@redhat.com>
Wed, 1 Jul 2015 13:31:49 +0000 (1 15:31 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 13 Jul 2015 12:50:07 +0000 (13 08:50 -0400)
tree564762318b1d1ad8a5081f567196046da2dbb8b2
parent7464fcc6df1189e2088cb846fc73838edd70af87
KVM: x86: make vapics_in_nmi_mode atomic

[ Upstream commit 42720138b06301cc8a7ee8a495a6d021c4b6a9bc ]

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]
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c