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, Mar 25, 1:45 AM
Unknown Object (File)
Thu, Mar 19, 8:33 PM
Unknown Object (File)
Feb 19 2026, 3:31 PM
Unknown Object (File)
Feb 16 2026, 10:45 PM
Unknown Object (File)
Feb 16 2026, 3:38 PM
Unknown Object (File)
Jan 10 2026, 3:36 PM
Unknown Object (File)
Jan 10 2026, 4:32 AM
Unknown Object (File)
Jan 2 2026, 3:42 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.