created | 2022-11-27T15:56:25Z |
---|---|
begin | 2022-11-09T17:12:50Z |
end | 2022-11-09T17:53:12Z |
path | src/sys |
commits | 1 |
date | 2022-11-09T17:53:12Z | |||
---|---|---|---|---|
author | dv | |||
files | src/sys/arch/amd64/amd64/vmm.c | log | diff | annotate |
src/sys/arch/amd64/include/vmmvar.h | log | diff | annotate | |
message |
vmm(4): treat vcpu lists as immutable, reducing complexity. Since vmm doesn't support hot-plug vcpus we can reduce complexity by treating the vcpu list per vm as immutable after creation. As a consequence, we can use the vm reference count to protect the lifetime of the vcpus, removing the need for reference counting individual vcpu objects. With an immutable list, we no longer need a rwlock protecting it either. Original diff from dlg@ that I reworked and tested. ok dlg@, mlarkin@ |