]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: TDX: Save and restore IA32_DEBUGCTL
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 29 Jan 2025 09:59:00 +0000 (11:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Mar 2025 18:20:54 +0000 (14:20 -0400)
commit8af099037527c54399d44c4fd30eab15931700ce
treecc59ea9d5c5bd9c8964e7ac8c5a6f9d2fad532f9
parent6d415778f1069b52344f7cb09ae7b623579486c9
KVM: TDX: Save and restore IA32_DEBUGCTL

Save the IA32_DEBUGCTL MSR before entering a TDX VCPU and restore it
afterwards.  The TDX Module preserves bits 1, 12, and 14, so if no
other bits are set, no restore is done.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Message-ID: <20250129095902.16391-12-adrian.hunter@intel.com>
Reviewed-by: Xiayao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/tdx.c