Page MenuHomeFreeBSD

bhyve: change suspend exit code
ClosedPublic

Authored by novel on Dec 5 2025, 5:21 PM.
Tags
None
Referenced Files
F141802677: D54087.diff
Sat, Jan 10, 3:36 PM
Unknown Object (File)
Sat, Jan 10, 4:32 AM
Unknown Object (File)
Fri, Jan 2, 3:42 PM
Unknown Object (File)
Fri, Jan 2, 2:13 PM
Unknown Object (File)
Fri, Dec 26, 2:53 AM
Unknown Object (File)
Fri, Dec 19, 7:27 PM
Unknown Object (File)
Thu, Dec 18, 11:05 AM
Unknown Object (File)
Wed, Dec 17, 9:24 AM

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69074
Build 65957: arc lint + arc unit

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.