diff options
author | Quentin Perret <qperret@google.com> | 2021-12-15 19:12:31 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-12-16 15:58:57 +0300 |
commit | 52b28657ebd7cd20e931ce71190f235d0fa018a6 (patch) | |
tree | 98a6a0f27ff745cddbccc2f4dbbd3033e73712af /arch/arm64/include/asm/kvm_mmu.h | |
parent | b8cc6eb5bded7078f796b2ebf548f79850281eb6 (diff) | |
download | linux-52b28657ebd7cd20e931ce71190f235d0fa018a6.tar.xz |
KVM: arm64: pkvm: Unshare guest structs during teardown
Make use of the newly introduced unshare hypercall during guest teardown
to unmap guest-related data structures from the hyp stage-1.
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211215161232.1480836-15-qperret@google.com
Diffstat (limited to 'arch/arm64/include/asm/kvm_mmu.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_mmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h index 185d0f62b724..81839e9a8a24 100644 --- a/arch/arm64/include/asm/kvm_mmu.h +++ b/arch/arm64/include/asm/kvm_mmu.h @@ -151,6 +151,7 @@ static __always_inline unsigned long __kern_hyp_va(unsigned long v) #include <asm/stage2_pgtable.h> int kvm_share_hyp(void *from, void *to); +void kvm_unshare_hyp(void *from, void *to); int create_hyp_mappings(void *from, void *to, enum kvm_pgtable_prot prot); int create_hyp_io_mappings(phys_addr_t phys_addr, size_t size, void __iomem **kaddr, |