]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: VMX: Add a macro to track which DEBUGCTL bits are host-owned
authorSean Christopherson <seanjc@google.com>
Thu, 26 Jun 2025 16:14:20 +0000 (09:14 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 9 Jul 2025 16:30:52 +0000 (09:30 -0700)
commite1ef1c57ff70751a62b93d513e7009155ea0b0c1
tree91729ba148647f457ef707f6c3880e150d12b785
parent05186d7a8e5b8a31be93728089c9c3fee4dab0a2
KVM: VMX: Add a macro to track which DEBUGCTL bits are host-owned

Add VMX_HOST_OWNED_DEBUGCTL_BITS to track which bits are host-owned, i.e.
need to be preserved when running the guest, to dedup the logic without
having to incur a memory load to get at kvm_x86_ops.HOST_OWNED_DEBUGCTL.

No functional change intended.

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/all/aF1yni8U6XNkyfRf@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/main.c
arch/x86/kvm/vmx/vmx.h