summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/vmx/nested.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-06-10 16:20:07 -0700
committerSean Christopherson <seanjc@google.com>2025-06-20 13:05:22 -0700
commit8a4351ac302cd8c19729ba2636acfd0467c22ae8 (patch)
tree4a4338f750d793448d5888a0612f3afdff67c769 /arch/x86/kvm/vmx/nested.c
parent17ec2f965344ee3fd6620bef7ef68792f4ac3af0 (diff)
KVM: VMX: Extract checking of guest's DEBUGCTL into helper
Move VMX's logic to check DEBUGCTL values into a standalone helper so that the code can be used by nested VM-Enter to apply the same logic to the value being loaded from vmcs12. KVM needs to explicitly check vmcs12->guest_ia32_debugctl on nested VM-Enter, as hardware may support features that KVM does not, i.e. relying on hardware to detect invalid guest state will result in false negatives. Unfortunately, that means applying KVM's funky suppression of BTF and LBR to vmcs12 so as not to break existing guests. No functional change intended. Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20250610232010.162191-6-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kvm/vmx/nested.c')
0 files changed, 0 insertions, 0 deletions