vmm(4): copyout guest state on VM_EXIT_NONE
authordv <dv@openbsd.org>
Mon, 22 Nov 2021 12:55:40 +0000 (12:55 +0000)
committerdv <dv@openbsd.org>
Mon, 22 Nov 2021 12:55:40 +0000 (12:55 +0000)
commit2ba075906411a715047318df56419acbe4033139
tree88e62a19ef39c01b90f85c60044e0458be557ff7
parent7d15cb53a646c08495353f48291ab06e87f57f48
vmm(4): copyout guest state on VM_EXIT_NONE

Partly related to a bug reported by kn@. We should be copying out
the guest exit state (including registers) when we succesfully
return from the vcpu run loop even if we don't require an emulation
assist from userland/vmd(8). This condition was introduced when I
removed the use of yield() and instead exit the kernel if the
scheduler says we've hogged the cpu.

ok mlarkin@
sys/arch/amd64/amd64/vmm.c