vmm: merge VMX and SVM vm initialization functions.
authordv <dv@openbsd.org>
Fri, 3 May 2024 13:48:29 +0000 (13:48 +0000)
committerdv <dv@openbsd.org>
Fri, 3 May 2024 13:48:29 +0000 (13:48 +0000)
commit22ee75e59c47eb84dd91ce5d6083aec95c19845e
treeaa3000580f72665e505ccccc41f4b5a25e43b390
parentd15da5930ab12306b0bd354fb0fa2f6c5317f0ce
vmm: merge VMX and SVM vm initialization functions.

They do the same uvmspace/pmap dance, so just reduce to a single
function. Kernel lock is moved to the uvmspace_free call. In addition,
we should be using the pmap mutex in pmap_convert, called by the
vm initialization routine.

ok mlarkin@
sys/arch/amd64/amd64/pmap.c
sys/arch/amd64/amd64/vmm_machdep.c