]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2731be61732c12b18b0712a12810330e7e07a327
tree258f4fa0826c514cd48574ae5325455fd81695db
parent42ce5336fe562726014e8a739f016d93fd78c370
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