aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorQuentin Perret <[email protected]>2022-11-10 19:02:41 +0000
committerMarc Zyngier <[email protected]>2022-11-11 16:40:54 +0000
commit9926cfce8dcb880255f30ab9ac930add787e1ead (patch)
tree46a94d0137504131710e83f42b4189a8ec9b63b8 /lib/mpi/mpi-sub-ui.c
parent43c1ff8b75011bc3e3e923adf31ba815864a2494 (diff)
KVM: arm64: Add helpers to pin memory shared with the hypervisor at EL2
Add helpers allowing the hypervisor to check whether a range of pages are currently shared by the host, and 'pin' them if so by blocking host unshare operations until the memory has been unpinned. This will allow the hypervisor to take references on host-provided data-structures (e.g. 'struct kvm') with the guarantee that these pages will remain in a stable state until the hypervisor decides to release them, for example during guest teardown. Tested-by: Vincent Donnefort <[email protected]> Signed-off-by: Quentin Perret <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions