mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 18:10:50 +07:00
KVM: Fix memory leak on guest exit
This patch fixes a memory leak, we want to free the physmem when destroying the vm. Signed-off-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
eff0114ac3
commit
dfdded7c41
@ -194,6 +194,7 @@ struct kvm *kvm_arch_create_vm(void)
|
||||
void kvm_arch_destroy_vm(struct kvm *kvm)
|
||||
{
|
||||
debug_unregister(kvm->arch.dbf);
|
||||
kvm_free_physmem(kvm);
|
||||
free_page((unsigned long)(kvm->arch.sca));
|
||||
kfree(kvm);
|
||||
module_put(THIS_MODULE);
|
||||
|
Loading…
Reference in New Issue
Block a user