vmm(4): set RAX guest register state based on VMCB
authordv <dv@openbsd.org>
Mon, 7 Nov 2022 12:29:12 +0000 (12:29 +0000)
committerdv <dv@openbsd.org>
Mon, 7 Nov 2022 12:29:12 +0000 (12:29 +0000)
commit3b1dca1d4a04138d17d537748bd64cbd849e9e5b
tree036e688da1dbdc2ebce0b52fe7650173b108d851
parent5f1bde4564ba31b04e48f9092e1605799b21645f
vmm(4): set RAX guest register state based on VMCB

The read/write register routines for SVM didn't acknowledge RAX in
the VMCB as the de facto RAX state. When writing gprs, vmm should
update RAX in the VMCB. When reading, it should be setting the guest
regs state based on the VMCB.

Needed for proper mmio emulation in userland.

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