vmm: add additional fault type, fixing vm receive
authordv <dv@openbsd.org>
Fri, 13 May 2022 18:19:32 +0000 (18:19 +0000)
committerdv <dv@openbsd.org>
Fri, 13 May 2022 18:19:32 +0000 (18:19 +0000)
commit8732c71624623210e9e8217b22269e93892f230f
treefa369e19bd4a4952b7a56919bd7a43dfe5df9e3d
parent2eec08437320ad5c535e409b6b95fb53fea5b00f
vmm: add additional fault type, fixing vm receive

After vmm(4)/vmd(8) "receive" a vm via vmctl(8), vmd on Intel hosts
was incorrectly identifying the fault type for nested page fault
exits and resetting the vm. This commit adds a new fault type to
signify the page fault was serviced in vmm and any exit to userland
does not require an assist.

ok mlarkin@
sys/arch/amd64/amd64/vmm.c
sys/arch/amd64/include/vmmvar.h