diff options
author | Avi Kivity <avi@qumranet.com> | 2008-03-25 10:26:13 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 11:00:54 +0200 |
commit | 3d45830c2b11a9d756faae161742b7d1ec417f7e (patch) | |
tree | 5c0fcbb7d3191d114cc7ef9049815caf4f242a85 | |
parent | KVM: MMU: allow the vm to shrink the kvm mmu shadow caches (diff) | |
download | linux-3d45830c2b11a9d756faae161742b7d1ec417f7e.tar.xz linux-3d45830c2b11a9d756faae161742b7d1ec417f7e.zip |
KVM: Free apic access page on vm destruction
Noticed by Marcelo Tosatti.
Signed-off-by: Avi Kivity <avi@qumranet.com>
-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 e6a38bf9a45e..c7ad2352227a 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3853,6 +3853,8 @@ void kvm_arch_destroy_vm(struct kvm *kvm) kfree(kvm->arch.vioapic); kvm_free_vcpus(kvm); kvm_free_physmem(kvm); + if (kvm->arch.apic_access_page) + put_page(kvm->arch.apic_access_page); kfree(kvm); } |