KVM: arm64: pkvm: Unshare guest structs during teardown
authorQuentin Perret <qperret@google.com>
Wed, 15 Dec 2021 16:12:31 +0000 (16:12 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Dec 2021 12:58:57 +0000 (12:58 +0000)
commit52b28657ebd7cd20e931ce71190f235d0fa018a6
tree98a6a0f27ff745cddbccc2f4dbbd3033e73712af
parentb8cc6eb5bded7078f796b2ebf548f79850281eb6
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
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/fpsimd.c
arch/arm64/kvm/mmu.c
arch/arm64/kvm/reset.c