diff options
author | Sheng Yang <sheng.yang@intel.com> | 2008-04-25 21:44:52 +0800 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-05-04 14:44:41 +0300 |
commit | b7ebfb0509692cd923e31650f81ed4d79c9a3e59 (patch) | |
tree | def19d1472976c479287bc00384706e1e9fca461 /arch/x86/kvm/x86.c | |
parent | 0d15029895051904e31925ec63525cc3a637f7de (diff) | |
download | op-kernel-dev-b7ebfb0509692cd923e31650f81ed4d79c9a3e59.zip op-kernel-dev-b7ebfb0509692cd923e31650f81ed4d79c9a3e59.tar.gz |
KVM: VMX: Prepare an identity page table for EPT in real mode
[aliguory: plug leak]
Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 0735efb..1842a86 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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); } |