Page MenuHomeFreeBSD

bhyve: Exit with EX_OSERR if init checkpoint or restore time failed
ClosedPublic

Authored by gusev.vitaliy_gmail.com on Mar 2 2023, 6:47 PM.
Tags
Referenced Files
Unknown Object (File)
Sat, Jul 18, 3:20 AM
Unknown Object (File)
Wed, Jul 15, 8:58 AM
Unknown Object (File)
Jun 20 2026, 12:06 AM
Unknown Object (File)
Jun 16 2026, 4:33 AM
Unknown Object (File)
Jun 12 2026, 6:15 AM
Unknown Object (File)
Jun 11 2026, 8:46 PM
Unknown Object (File)
Jun 8 2026, 2:27 AM
Unknown Object (File)
May 15 2026, 11:11 AM

Details

Summary

Part of Capsicum integration for snapshots.

Sponsored by: vStack

Test Plan

Run VM, Suspend, Resume.

Diff Detail

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

Event Timeline

markj added inline comments.
usr.sbin/bhyve/bhyverun.c
1582

pthread_create() returns a positive error number in the failure case, and this check won't catch it. I suspect it should just check init_checkpoint_thread(ctx) != 0.

This revision is now accepted and ready to land.Mar 2 2023, 10:03 PM

Fix note, use init_checkpoint_thread(ctx) != 0

This revision now requires review to proceed.Mar 3 2023, 11:47 AM
gusev.vitaliy_gmail.com added inline comments.
usr.sbin/bhyve/bhyverun.c
1582

Done.

This revision is now accepted and ready to land.Mar 3 2023, 2:27 PM