]> xenbits.xensource.com Git - people/pauldu/linux.git/commit
KVM: pfncache: Add a map helper function
authorPaul Durrant <pdurrant@amazon.com>
Thu, 7 Sep 2023 12:53:13 +0000 (12:53 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 11 Jan 2024 10:23:01 +0000 (10:23 +0000)
commit1a5d7dd7cc91b51ae29361658530ae30cada2ac9
tree3ac7278c79bffd75556d47c6adfb2bf111713b91
parent1c6d984f523f67ecfad1083bb04c55d91977bb15
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>
---
Cc: Sean Christopherson <seanjc@google.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
v8:
 - Re-work commit comment.
 - Fix CONFIG_HAS_IOMEM=n build.
virt/kvm/pfncache.c