]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: SVM: fix cr8 intercept window
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 11 Mar 2014 18:11:18 +0000 (19:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Mar 2014 17:21:10 +0000 (18:21 +0100)
commit596f3142d2b7be307a1652d59e7b93adab918437
treed48dead1f93b9766d14d4ccb9e0cb3b462ba9de4
parent6cbde8253a8143ada18ec0d1711230747a7c1934
KVM: SVM: fix cr8 intercept window

We always disable cr8 intercept in its handler, but only re-enable it
if handling KVM_REQ_EVENT, so there can be a window where we do not
intercept cr8 writes, which allows an interrupt to disrupt a higher
priority task.

Fix this by disabling intercepts in the same function that re-enables
them when needed. This fixes BSOD in Windows 2008.

Cc: <stable@vger.kernel.org>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c