mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
KVM: Free apic access page on vm destruction
Noticed by Marcelo Tosatti. Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
3ee16c8145
commit
3d45830c2b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue