]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Allow toggling bits in MSR_IA32_RTIT_CTL when enable bit is cleared
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 1 Nov 2024 18:50:31 +0000 (11:50 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 19 Dec 2024 15:34:10 +0000 (07:34 -0800)
commitfdd2db5126ce9cce22947354008d430252b08a03
tree01ad373becff4930167a3bd0ffee06191b024a2d
parent04bc93cf49d16d01753b95ddb5d4f230b809a991
KVM: VMX: Allow toggling bits in MSR_IA32_RTIT_CTL when enable bit is cleared

Allow toggling other bits in MSR_IA32_RTIT_CTL if the enable bit is being
cleared, the existing logic simply ignores the enable bit.  E.g. KVM will
incorrectly reject a write of '0' to stop tracing.

Fixes: bf8c55d8dc09 ("KVM: x86: Implement Intel PT MSRs read/write emulation")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
[sean: rework changelog, drop stable@]
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20241101185031.1799556-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c