KVM: VMX: Prepare an identity page table for EPT in real mode
[sfrench/cifs-2.6.git] / arch / x86 / kvm / x86.c
index 0735efbfa71254fbef6c38a2a2a86b54f104c59c..1842a86f7c33d1a8a65a94b2068a5f98d926ec49 100644 (file)
@@ -3909,6 +3909,8 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
        kvm_free_physmem(kvm);
        if (kvm->arch.apic_access_page)
                put_page(kvm->arch.apic_access_page);
+       if (kvm->arch.ept_identity_pagetable)
+               put_page(kvm->arch.ept_identity_pagetable);
        kfree(kvm);
 }