vmm(4): add more specific error messages for vm-entry failures
authordv <dv@openbsd.org>
Tue, 18 May 2021 00:05:20 +0000 (00:05 +0000)
committerdv <dv@openbsd.org>
Tue, 18 May 2021 00:05:20 +0000 (00:05 +0000)
commit8347a0eb0bc1902e1616b1edbda0d7ad7c794159
tree4cb7118e444d05999bb0eb52ed5ac92b54ca93d3
parentb931547982ad0bc035ad5580896a428a8fb01525
vmm(4): add more specific error messages for vm-entry failures

To aid vmx debugging, specify if the error was related to vmresume
or vmlaunch. For vm-entry failures due to failed checks, decode the
errors per the SDM Vol. 3C 26.8.
sys/arch/amd64/amd64/vmm.c