Revert "ANDROID: KVM: arm64: pkvm: Allow the shadows to be destroyed on teardown"

This reverts commit 88c46ab100.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: Ia915c2511df615f86dcc1f9ee6db3a5a2f1fb5ea
This commit is contained in:
Will Deacon
2022-07-07 15:51:17 +01:00
parent cc2b97cd8d
commit 62d2bb0336

View File

@@ -197,6 +197,9 @@ static void kvm_shadow_destroy(struct kvm *kvm)
struct mm_struct *mm = current->mm;
struct list_head *ppages;
if (!kvm_vm_is_protected(kvm))
return;
if (kvm->arch.pkvm.shadow_handle)
WARN_ON(kvm_call_hyp_nvhe(__pkvm_teardown_shadow, kvm));