KVM: pfncache: Add a map helper function
authorPaul Durrant <pdurrant@amazon.com>
Thu, 15 Feb 2024 15:28:56 +0000 (15:28 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 20 Feb 2024 15:37:39 +0000 (07:37 -0800)
commitf39b80e3ff12ced77dddcacd28b4af878cac1433
tree923eb487dace268c55a82cc11785512006468f78
parentdb7d6fbc10447090bab8691a907a7c383ec66f58
KVM: pfncache: Add a map helper function

There is a pfncache unmap helper but mapping is open-coded. Arguably this
is fine because mapping is done in only one place, hva_to_pfn_retry(), but
adding the helper does make that function more readable.

No functional change intended.

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