summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2012-10-29 23:58:15 +0000
committerneel <neel@FreeBSD.org>2012-10-29 23:58:15 +0000
commitaee862ac3fd36264249b7160eaecaeacab119ac3 (patch)
tree807e150711cf6f7e15a26af63cca16f0b648ed94 /sys/amd64
parent9631d598ccea6dd526400bad0a438a10c8294542 (diff)
downloadFreeBSD-src-aee862ac3fd36264249b7160eaecaeacab119ac3.zip
FreeBSD-src-aee862ac3fd36264249b7160eaecaeacab119ac3.tar.gz
Convert VMCS_ENTRY_INTR_INFO field into a vmcs identifier before passing it
to vmcs_getreg(). Without this conversion vmcs_getreg() will return EINVAL. In particular this prevented injection of the breakpoint exception into the guest via the "-B" option to /usr/sbin/bhyve which is hugely useful when debugging guest hangs. This was broken in r241921. Pointy hat: me Obtained from: NetApp
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/vmm/intel/vmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c
index ace2683..7a9cfb8 100644
--- a/sys/amd64/vmm/intel/vmx.c
+++ b/sys/amd64/vmm/intel/vmx.c
@@ -1685,7 +1685,7 @@ vmx_inject(void *arg, int vcpu, int type, int vector, uint32_t code,
* If there is already an exception pending to be delivered to the
* vcpu then just return.
*/
- error = vmcs_getreg(vmcs, VMCS_ENTRY_INTR_INFO, &info);
+ error = vmcs_getreg(vmcs, VMCS_IDENT(VMCS_ENTRY_INTR_INFO), &info);
if (error)
return (error);
OpenPOWER on IntegriCloud