the bitrig marco_vmm branch has been updated by marco with 2 new commits: commit 2f8289427657e1a69b3f3435a552bdb4a3b6c8ad diff: https://github.com/bitrig/bitrig/commit/2f82894 author: mpi <[email protected]> date: Sat Nov 21 11:16:30 2015 +0000
Prevent disabling vmm mode if a VM is still running. Return EAGAIN in this case: # vmmctl -d vmmctl: disable VMM command failed (35) - Resource temporarily unavailable ok mlarkin@ M sys/arch/amd64/amd64/vmm.c commit 9ddd00b0a8745280ba03b68b0b57ec5668a9a912 diff: https://github.com/bitrig/bitrig/commit/9ddd00b author: mpi <[email protected]> date: Sat Nov 21 11:08:58 2015 +0000 Do not create a VM if vmm mode hasn't been enable. Currently one MUST do "vmmctl -e" before creating a vm with "vmm -S ...". Lately this could be done automagically by vmd(8) but the kernel should not allow things that wont fly. While here, disable vmm mode in error path if at least one of the CPUs failed to enable it. ok mlarkin@ M sys/arch/amd64/amd64/vmm.c
