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)
commit52ce3c21aec30d9dd99a89662ae87c657636787b
tree73e8a750a72c8fe375ab2684abe3579bf9725971
parentbf0b682c9b6a6d6d54adf439bfe953feef7be2e8
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:
    4c38609ac569 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