KVM: x86: make vapics_in_nmi_mode atomic
authorRadim Krčmář <[email protected]>
Wed, 1 Jul 2015 13:31:49 +0000 (15:31 +0200)
committerPaolo Bonzini <[email protected]>
Fri, 3 Jul 2015 16:55:17 +0000 (18:55 +0200)
commit42720138b06301cc8a7ee8a495a6d021c4b6a9bc
treefbffa8a4feceef419b8d1f56cd521148095a8ba5
parent2ecd9d29abb171d6e97a4f3eb29d7456a11401b7
KVM: x86: make vapics_in_nmi_mode atomic

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ář <[email protected]>
[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: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c