Revert "ANDROID: KVM: arm64: Don't remove shadow table entry twice on teardown"

This reverts commit 9515eed842.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: Ia2fc456c8a6f43c95daf41a78de7e29321f252dc
This commit is contained in:
Will Deacon
2022-07-07 15:49:20 +01:00
parent c92fde7c79
commit e28f00e107

View File

@@ -655,6 +655,7 @@ int __pkvm_teardown_shadow(struct kvm *kvm)
/* Reclaim guest pages, and page-table pages */
mc = &vm->host_kvm->arch.pkvm.teardown_mc;
reclaim_guest_pages(vm, mc);
remove_shadow_table(shadow_handle);
unpin_host_vcpus(vm);
/* Push the metadata pages to the teardown memcache */