diff options
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 792fb7fae0a3..934dd1c9487e 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -1032,6 +1032,8 @@ static void kvm_destroy_vm(struct kvm *kvm) | |||
1032 | #endif | 1032 | #endif |
1033 | #if defined(CONFIG_MMU_NOTIFIER) && defined(KVM_ARCH_WANT_MMU_NOTIFIER) | 1033 | #if defined(CONFIG_MMU_NOTIFIER) && defined(KVM_ARCH_WANT_MMU_NOTIFIER) |
1034 | mmu_notifier_unregister(&kvm->mmu_notifier, kvm->mm); | 1034 | mmu_notifier_unregister(&kvm->mmu_notifier, kvm->mm); |
1035 | #else | ||
1036 | kvm_arch_flush_shadow(kvm); | ||
1035 | #endif | 1037 | #endif |
1036 | kvm_arch_destroy_vm(kvm); | 1038 | kvm_arch_destroy_vm(kvm); |
1037 | mmdrop(mm); | 1039 | mmdrop(mm); |