OSDN Git Service

KVM: VMX: Move Intel PT shenanigans out of VMXON/VMXOFF flows
authorSean Christopherson <seanjc@google.com>
Thu, 31 Dec 2020 00:26:58 +0000 (16:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:32 +0000 (05:27 -0500)
commit5ef940bd9ac267e5764ee886956352935dc7bad3
treed59efe05118a3c983da9ab330230ec80490060a4
parent150f17bfab37e981ba03b37440638138ff2aa9ec
KVM: VMX: Move Intel PT shenanigans out of VMXON/VMXOFF flows

Move the Intel PT tracking outside of the VMXON/VMXOFF helpers so that
a future patch can drop KVM's kvm_cpu_vmxoff() in favor of the kernel's
cpu_vmxoff() without an associated PT functional change, and without
losing symmetry between the VMXON and VMXOFF flows.

Barring undocumented behavior, this should have no meaningful effects
as Intel PT behavior does not interact with CR4.VMXE.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20201231002702.2223707-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c