Page MenuHomeFreeBSD

bhyve: Add an option to prevent automatic restart in monitor mode
Needs ReviewPublic

Authored by bnovkov on Sun, Aug 23, 1:04 PM.
Tags
None
Referenced Files
F170747560: D59123.diff
Sun, Sep 6, 9:39 AM
F170649214: D59123.id.diff
Sat, Sep 5, 7:41 PM
Unknown Object (File)
Sat, Sep 5, 1:03 PM
Unknown Object (File)
Sat, Sep 5, 10:41 AM
Unknown Object (File)
Sat, Sep 5, 12:46 AM
Unknown Object (File)
Fri, Sep 4, 10:05 PM
Unknown Object (File)
Fri, Sep 4, 4:06 PM
Unknown Object (File)
Thu, Sep 3, 4:11 PM

Details

Reviewers
andrew
Group Reviewers
bhyve
Summary

Monitor mode will currently unconditionally restart the guest if it
reboots, which can be incovenient in certain situations (e.g., resetting
the guest after a panic).

Address this by introducing a way to prevent automatic guest restarts
in monitor mode.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75980
Build 72863: arc lint + arc unit

Event Timeline

Thank you!

usr.sbin/bhyve/amd64/bhyverun_machdep.c
207

This is a backward compat break, shouldn't we handle the old name with bhyve_cfg_warn()?

usr.sbin/bhyve/bhyve.8
349

You might clarify that this option has no effect unless -M is specified or monitor.enabled is configured.

I think the SIGNAL HANDLING section should also explain how signal handling interacts with monitor mode and the new no_reboot option.

usr.sbin/bhyve/bhyve_config.5
239

You changed this to monitor.enabled.