KVM: pfncache: allow a cache to be activated with a fixed (userspace) HVA
authorPaul Durrant <pdurrant@amazon.com>
Thu, 15 Feb 2024 15:29:04 +0000 (15:29 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 20 Feb 2024 15:37:46 +0000 (07:37 -0800)
commit721f5b0dda784829b833039fbb42f420b9f86575
tree28071a513bf7532a3fb3bf005e6aa3c635b3062b
parent9e7325acb3dc8df8a6370ebc18aef107aae17ef0
KVM: pfncache: allow a cache to be activated with a fixed (userspace) HVA

Some pfncache pages may actually be overlays on guest memory that have a
fixed HVA within the VMM. It's pointless to invalidate such cached
mappings if the overlay is moved so allow a cache to be activated directly
with the HVA to cater for such cases. A subsequent patch will make use
of this facility.

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