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
This commit is contained in:
Quentin Perret 2021-12-15 16:12:31 +00:00 • committed by Marc Zyngier
commit 52b28657eb
6 changed files with 85 additions and 4 deletions