Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150152620
D53010.1791805177.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
945 B
Referenced Files
None
Subscribers
None
D53010.1791805177.diff
View Options
diff --git a/sys/arm64/vmm/vmm.c b/sys/arm64/vmm/vmm.c
--- a/sys/arm64/vmm/vmm.c
+++ b/sys/arm64/vmm/vmm.c
@@ -274,6 +274,7 @@
vmm_stat_free(vcpu->stats);
fpu_save_area_free(vcpu->guestfpu);
vcpu_lock_destroy(vcpu);
+ free(vcpu, M_VMM);
}
}
@@ -585,8 +586,6 @@
vmmops_vmspace_free(vm->vmspace);
vm->vmspace = NULL;
- for (i = 0; i < vm->maxcpus; i++)
- free(vm->vcpu[i], M_VMM);
free(vm->vcpu, M_VMM);
sx_destroy(&vm->vcpus_init_lock);
}
diff --git a/sys/riscv/vmm/vmm.c b/sys/riscv/vmm/vmm.c
--- a/sys/riscv/vmm/vmm.c
+++ b/sys/riscv/vmm/vmm.c
@@ -174,6 +174,7 @@
vmm_stat_free(vcpu->stats);
fpu_save_area_free(vcpu->guestfpu);
vcpu_lock_destroy(vcpu);
+ free(vcpu, M_VMM);
}
}
@@ -453,8 +454,6 @@
vmmops_vmspace_free(vm->vmspace);
vm->vmspace = NULL;
- for (i = 0; i < vm->maxcpus; i++)
- free(vm->vcpu[i], M_VMM);
free(vm->vcpu, M_VMM);
sx_destroy(&vm->vcpus_init_lock);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 11:39 AM (2 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30330315
Default Alt Text
D53010.1791805177.diff (945 B)
Attached To
Mode
D53010: vmm: Unify implementations of vcpu_cleanup()
Attached
Detach File
Event Timeline
Log In to Comment