commit | 3d45830c2b11a9d756faae161742b7d1ec417f7e | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Tue Mar 25 11:26:13 2008 +0200 |
committer | Avi Kivity <avi@qumranet.com> | Sun Apr 27 12:00:54 2008 +0300 |
tree | 5c0fcbb7d3191d114cc7ef9049815caf4f242a85 | |
parent | 3ee16c814511cd58f956b47b9c7654f57f674688 [diff] |
KVM: Free apic access page on vm destruction Noticed by Marcelo Tosatti. Signed-off-by: Avi Kivity <avi@qumranet.com>
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e6a38bf..c7ad235 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c
@@ -3853,6 +3853,8 @@ 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); }