Project

General

Profile

Actions

Bug #13010

closed

bhyve should not exit when VM debugged

Added by Patrick Mooney over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
bhyve
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
bhyve
Gerrit CR:

Description

Using mdb-bhyve on an instance with the proposed patches for #13008 and #13009, I find that the bhyve process exits immediately upon attaching to the instance:

vm_loop: unexpected VMEXIT_DEBUG

This change in behavior appears to come as part of #12792:

 vmexit_debug(struct vmctx *ctx, struct vm_exit *vmexit, int *pvcpu)
 {

+       if (gdb_port == 0) {
+               fprintf(stderr, "vm_loop: unexpected VMEXIT_DEBUG\n");
+               exit(4);
+       }
        gdb_cpu_suspend(*pvcpu);
        return (VMEXIT_CONTINUE);
 }

Since we're not expecting to use gdb to debug bhyve instances, we ignore that bail-out path for now and keep the instance running.

Actions

Also available in: Atom PDF