vmm/vmd: add io instruction length to exit information.
authordv <dv@openbsd.org>
Wed, 10 Jan 2024 04:13:59 +0000 (04:13 +0000)
committerdv <dv@openbsd.org>
Wed, 10 Jan 2024 04:13:59 +0000 (04:13 +0000)
commitcc847d2a3263780417a92f93f643d708768ba82e
treed241d2f459c92fe97305b6211d61303d6a77eb41
parentb6808f03c5524580a7682f65f1c23ac4694c33cd
vmm/vmd: add io instruction length to exit information.

Add the instruction length to the vm exit information to allower
vmd(8) to manipulate the instruction pointer after io emulation.
This is preparation for emulating string-based io instructions.

Removes the instruction pointer update from the kernel (vmm(4)) as
well as the instruction length checks, which were overly restrictive
anyways based on the way prefixes work in x86 instructions.

ok mlarkin@
sys/arch/amd64/amd64/vmm_machdep.c
sys/arch/amd64/include/vmmvar.h
usr.sbin/vmd/vm.c