aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-03-25 05:26:13 -0400
committerAvi Kivity <avi@qumranet.com>2008-04-27 05:00:54 -0400
commit3d45830c2b11a9d756faae161742b7d1ec417f7e (patch)
tree5c0fcbb7d3191d114cc7ef9049815caf4f242a85 /arch
parent3ee16c814511cd58f956b47b9c7654f57f674688 (diff)
KVM: Free apic access page on vm destruction
Noticed by Marcelo Tosatti. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c2
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)
3853 kfree(kvm->arch.vioapic); 3853 kfree(kvm->arch.vioapic);
3854 kvm_free_vcpus(kvm); 3854 kvm_free_vcpus(kvm);
3855 kvm_free_physmem(kvm); 3855 kvm_free_physmem(kvm);
3856 if (kvm->arch.apic_access_page)
3857 put_page(kvm->arch.apic_access_page);
3856 kfree(kvm); 3858 kfree(kvm);
3857} 3859}
3858 3860