diff options
author | tychon <tychon@FreeBSD.org> | 2015-04-15 18:49:03 +0000 |
---|---|---|
committer | tychon <tychon@FreeBSD.org> | 2015-04-15 18:49:03 +0000 |
commit | 98c2a4bca48582a25dbb01274fd65c9b8cd74058 (patch) | |
tree | 790fd40fe0448c70d8861f085fe23847b3e6b022 /usr.sbin/bhyve | |
parent | 3189c1053226da8373940e9a1e29f196b2c4da0e (diff) | |
download | FreeBSD-src-98c2a4bca48582a25dbb01274fd65c9b8cd74058.zip FreeBSD-src-98c2a4bca48582a25dbb01274fd65c9b8cd74058.tar.gz |
Prior to aborting due to an ioport error, it is always interesting to
see what the guest's %rip is.
Reviewed by: grehan
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/bhyverun.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 271f67c..d2e3d3c 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -325,8 +325,10 @@ vmexit_inout(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu) error = emulate_inout(ctx, vcpu, vme, strictio); if (error) { - fprintf(stderr, "Unhandled %s%c 0x%04x\n", in ? "in" : "out", - bytes == 1 ? 'b' : (bytes == 2 ? 'w' : 'l'), port); + fprintf(stderr, "Unhandled %s%c 0x%04x at 0x%lx\n", + in ? "in" : "out", + bytes == 1 ? 'b' : (bytes == 2 ? 'w' : 'l'), + port, vmexit->rip); return (VMEXIT_ABORT); } else { return (VMEXIT_CONTINUE); |