]> git.baikalelectronics.ru Git - kernel.git/commit
x86,kvm,vmx: Don't trap writes to CR4.TSD
authorAndy Lutomirski <luto@amacapital.net>
Wed, 8 Oct 2014 00:16:21 +0000 (17:16 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:22 +0000 (12:07 +0100)
commitab3dade50ecb424922a6a1761e772629a7ad311a
tree73e8a750a72c8fe375ab2684abe3579bf9725971
parentd11d20adcff18d0cfe9453e0885c6b5075176018
x86,kvm,vmx: Don't trap writes to CR4.TSD

CR4.TSD is guest-owned; don't trap writes to it in VMX guests.  This
avoids a VM exit on context switches into or out of a PR_TSC_SIGSEGV
task.

I think that this fixes an unintentional side-effect of:
    c4957953bf5e KVM: VMX: Make guest cr4 mask more conservative

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c