Page MenuHomeFreeBSD

bhyve: change suspend exit code
ClosedPublic

Authored by novel on Dec 5 2025, 5:21 PM.
Tags
None
Referenced Files
F164113396: D54087.id167592.diff
Tue, Jul 28, 8:43 PM
Unknown Object (File)
Mon, Jul 27, 4:50 AM
Unknown Object (File)
Mon, Jul 27, 1:53 AM
Unknown Object (File)
Sun, Jul 26, 12:27 AM
Unknown Object (File)
Sat, Jul 25, 10:55 AM
Unknown Object (File)
Sat, Jul 25, 3:07 AM
Unknown Object (File)
Fri, Jul 24, 5:31 AM
Unknown Object (File)
Thu, Jul 23, 10:10 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.