diff options
author | Will Deacon <will@kernel.org> | 2021-12-15 17:12:29 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-12-16 13:58:57 +0100 |
commit | 376a240f037959c2b9a2486e53bcd8d388cbec17 (patch) | |
tree | 7a2e0336eea759f62def0da06d26cb843f1a401c /arch/arm64/include/asm/kvm_asm.h | |
parent | KVM: arm64: Implement __pkvm_host_share_hyp() using do_share() (diff) | |
download | linux-376a240f037959c2b9a2486e53bcd8d388cbec17.tar.xz linux-376a240f037959c2b9a2486e53bcd8d388cbec17.zip |
KVM: arm64: Implement do_unshare() helper for unsharing memory
Tearing down a previously shared memory region results in the borrower
losing access to the underlying pages and returning them to the "owned"
state in the owner.
Implement a do_unshare() helper, along the same lines as do_share(), to
provide this functionality for the host-to-hyp case.
Reviewed-by: Andrew Walbran <qwandor@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211215161232.1480836-13-qperret@google.com
Diffstat (limited to 'arch/arm64/include/asm/kvm_asm.h')
0 files changed, 0 insertions, 0 deletions