KVM: x86: Disable Intel PT when VMXON in L1 guest
authorLuwei Kang <luwei.kang@intel.com>
Wed, 24 Oct 2018 08:05:16 +0000 (16:05 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Dec 2018 10:28:38 +0000 (11:28 +0100)
commitee85dec2fe9c860c40f6e2e1d53052b80f36cd58
tree258f4fa0826c514cd48574ae5325455fd81695db
parentb08c28960f254bd246af8e30a468dfc7dd56e03b
KVM: x86: Disable Intel PT when VMXON in L1 guest

Currently, Intel Processor Trace do not support tracing in L1 guest
VMX operation(IA32_VMX_MISC[bit 14] is 0). As mentioned in SDM,
on these type of processors, execution of the VMXON instruction will
clears IA32_RTIT_CTL.TraceEn and any attempt to write IA32_RTIT_CTL
causes a general-protection exception (#GP).

Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c