summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2016-04-25 19:53:46 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2016-04-25 19:53:46 +0000
commitb05d5c9a49f53ca5b82fec6941a127b016cd0a9e (patch)
treed8d46f1ed03db614bfd02b43faac29479ce1247c /sys
parenteca07a91fc84b38554a37e75caaeb9c1ca82d0d5 (diff)
when returning from vmd with an unknown exit reason, print the name of the
exit in addition to the exit code.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/vmm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index 67eb768a7f4..b12b65a1a00 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.57 2016/04/25 19:26:27 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.58 2016/04/25 19:53:45 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -2923,8 +2923,10 @@ vcpu_run_vmx(struct vcpu *vcpu, uint8_t from_exit, int16_t *injint)
break;
default:
printf("vcpu_run_vmx: returning from exit "
- "with unknown reason %d\n",
- vcpu->vc_gueststate.vg_exit_reason);
+ "with unknown reason %d (%s)\n",
+ vcpu->vc_gueststate.vg_exit_reason,
+ vmx_exit_reason_decode(
+ vcpu->vc_gueststate.vg_exit_reason));
break;
}
}