KVM: selftests: re-map Xen's vcpu_info using HVA rather than GPA
authorPaul Durrant <pdurrant@amazon.com>
Thu, 15 Feb 2024 15:29:10 +0000 (15:29 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Feb 2024 15:01:19 +0000 (07:01 -0800)
commitb4dfbfdc95387eeb8c900cf80116088a7a663be5
tree61428dd4545169f6000e5c4ce6501f56774d1224
parent9397b5334af1f4af37cf35b5c647f84a948e3110
KVM: selftests: re-map Xen's vcpu_info using HVA rather than GPA

If the relevant capability (KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA) is present
then re-map vcpu_info using the HVA part way through the tests to make sure
then there is no functional change.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Link: https://lore.kernel.org/r/20240215152916.1158-16-paul@xen.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c