Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178397894
D53010.1796664312.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
945 B
Referenced Files
None
Subscribers
None
D53010.1796664312.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, Dec 7, 5:25 PM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42287670
Default Alt Text
D53010.1796664312.diff (945 B)
Attached To
Mode
D53010: vmm: Unify implementations of vcpu_cleanup()
Attached
Detach File
Event Timeline