The branch stable/14 has been updated by novel: URL: https://cgit.FreeBSD.org/src/commit/?id=3f649d1edfbea6caccd3270fe0071875adb9651a
commit 3f649d1edfbea6caccd3270fe0071875adb9651a Author: Roman Bogorodskiy <[email protected]> AuthorDate: 2025-12-05 17:16:29 +0000 Commit: Roman Bogorodskiy <[email protected]> CommitDate: 2026-01-04 10:24:47 +0000 bhyve: change suspend exit code Currently, after suspending, bhyve(8) exits with 0. This code is also used to indicate that a VM was rebooted. To differentiate reboot and suspend, use the next available exit code, 5, for suspend. Approved by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D54087 (cherry picked from commit 611bbb190ff593e0e424e311575d7e978e623659) --- usr.sbin/bhyve/bhyve.8 | 4 +++- usr.sbin/bhyve/snapshot.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index a6e1f772a81f..48735c22e320 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 26, 2025 +.Dd December 30, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -1025,6 +1025,8 @@ halted triple fault .It 4 exited due to an error +.It 5 +suspended .El .Sh EXAMPLES If not using a boot ROM, the guest operating system must have been loaded with diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c index edce55c03eae..23f6fc627de1 100644 --- a/usr.sbin/bhyve/snapshot.c +++ b/usr.sbin/bhyve/snapshot.c @@ -1309,7 +1309,7 @@ vm_checkpoint(struct vmctx *ctx, int fddir, const char *checkpoint_file, if (stop_vm) { vm_destroy(ctx); - exit(0); + exit(5); } done:
