mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user