提交 3d45830c 编写于 作者: A Avi Kivity

KVM: Free apic access page on vm destruction

Noticed by Marcelo Tosatti.
Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 3ee16c81
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册