]> xenbits.xensource.com Git - people/pauldu/linux.git/commit
KVM: selftests: map Xen's shared_info page using HVA rather than GFN
authorPaul Durrant <pdurrant@amazon.com>
Mon, 18 Sep 2023 08:44:43 +0000 (08:44 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 15 Feb 2024 09:54:45 +0000 (09:54 +0000)
commit4244a7da2b8359c57ac27e8706e8cc2f75ca72a0
treeb92e0e8b5ddb21c0a6c28d33aad45feaef20c781
parent52e57abe27e6f81ff1f85f4285e69a914b5ea3ac
KVM: selftests: map Xen's shared_info page using HVA rather than GFN

Using the HVA of the shared_info page is more efficient, so if the
capability (KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA) is present use that method
to do the mapping.

NOTE: Have the juggle_shinfo_state() thread map and unmap using both
      GFN and HVA, to make sure the older mechanism is not broken.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
---
Cc: Sean Christopherson <seanjc@google.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: David Woodhouse <dwmw2@infradead.org>
v13:
 - Patch title change.

v3:
 - Re-work the juggle_shinfo_state() thread.

v2:
 - New in this version.
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c