]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Jul 2015 12:10:43 +0000 (14:10 +0200)
commit67b3047b7ab80b80bca93a92e3aa9c4a7ea3e717
tree6f146e68f31f5832fdd6d0e71feb062a27e7d548
parent55d8b6ac1cb9a66fa0fc22c00c30c112126ca14c
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: Jiri Slaby <jslaby@suse.cz>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c