Revert "ANDROID: KVM: arm64: Only call kvm_shadow_destroy() in protected mode"

This reverts commit 0863f25b5d.

Bug: 233587962
Signed-off-by: Will Deacon <willdeacon@google.com>
Change-Id: I62a13366e694441b688d6555fe8a19cb6552c031
This commit is contained in:
Will Deacon
2022-07-07 15:49:12 +01:00
parent 07dac217ae
commit c93313e2b6

View File

@@ -231,9 +231,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
bitmap_free(kvm->arch.pmu_filter);
kvm_vgic_destroy(kvm);
if (is_protected_kvm_enabled())
kvm_shadow_destroy(kvm);
kvm_shadow_destroy(kvm);
for (i = 0; i < KVM_MAX_VCPUS; ++i) {
if (kvm->vcpus[i]) {