Page MenuHomeFreeBSD

bhyve: change suspend exit code
ClosedPublic

Authored by novel on Dec 5 2025, 5:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 22, 3:53 AM
Unknown Object (File)
Fri, Apr 17, 4:54 PM
Unknown Object (File)
Sat, Apr 11, 11:05 PM
Unknown Object (File)
Sat, Apr 11, 5:36 AM
Unknown Object (File)
Tue, Apr 7, 2:06 PM
Unknown Object (File)
Mar 25 2026, 1:45 AM
Unknown Object (File)
Mar 19 2026, 8:33 PM
Unknown Object (File)
Feb 19 2026, 3:31 PM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

novel requested review of this revision.Dec 5 2025, 5:21 PM
markj added subscribers: bnovkov, markj.
markj added inline comments.
usr.sbin/bhyve/snapshot.c
1311

@bnovkov this will require an update in D53730.

This revision is now accepted and ready to land.Dec 8 2025, 2:36 PM
This revision was automatically updated to reflect the committed changes.
usr.sbin/bhyve/snapshot.c
1311

Thanks, I've updated the diff before landing the commits.