KVM: VMX: Report up-to-date exit qualification to userspace
authorChao Gao <chao.gao@intel.com>
Fri, 29 Dec 2023 02:26:52 +0000 (10:26 +0800)
committerSean Christopherson <seanjc@google.com>
Wed, 7 Feb 2024 15:47:53 +0000 (07:47 -0800)
commitd7f0a00e438d2275d398536d78aab4097a3aa25e
tree376203be7dc1724d95fe9a26998ede47a532dc10
parent41bccc98fb7931d63d03f326a746ac4d429c1dd3
KVM: VMX: Report up-to-date exit qualification to userspace

Use vmx_get_exit_qual() to read the exit qualification.

vcpu->arch.exit_qualification is cached for EPT violation only and even
for EPT violation, it is stale at this point because the up-to-date
value is cached later in handle_ept_violation().

Fixes: 70bcd708dfd1 ("KVM: vmx: expose more information for KVM_INTERNAL_ERROR_DELIVERY_EV exits")
Signed-off-by: Chao Gao <chao.gao@intel.com>
Link: https://lore.kernel.org/r/20231229022652.300095-1-chao.gao@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c