]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitddc19d37aa2bfeff2be2fca4d6a4dc0387801c12
treed59efe05118a3c983da9ab330230ec80490060a4
parent8c807924365df2daeb7fe48ac0555f140085fa8f
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