Author: tychon
Date: Wed Apr 15 18:49:03 2015
New Revision: 281561
URL: https://svnweb.freebsd.org/changeset/base/281561

Log:
  Prior to aborting due to an ioport error, it is always interesting to
  see what the guest's %rip is.
  
  Reviewed by:  grehan

Modified:
  head/usr.sbin/bhyve/bhyverun.c

Modified: head/usr.sbin/bhyve/bhyverun.c
==============================================================================
--- head/usr.sbin/bhyve/bhyverun.c      Wed Apr 15 16:52:34 2015        
(r281560)
+++ head/usr.sbin/bhyve/bhyverun.c      Wed Apr 15 18:49:03 2015        
(r281561)
@@ -325,8 +325,10 @@ vmexit_inout(struct vmctx *ctx, struct v
 
        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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to