Page MenuHomeFreeBSD

bhyvectl: Operations --suspend and --checkpoint are alternative
ClosedPublic

Authored by gusev.vitaliy_gmail.com on Mar 3 2023, 11:55 AM.
Tags
Referenced Files
Unknown Object (File)
Oct 7 2024, 6:18 AM
Unknown Object (File)
Oct 7 2024, 6:18 AM
Unknown Object (File)
Oct 7 2024, 6:18 AM
Unknown Object (File)
Oct 7 2024, 5:53 AM
Unknown Object (File)
Oct 3 2024, 8:28 PM
Unknown Object (File)
Oct 1 2024, 10:08 AM
Unknown Object (File)
Oct 1 2024, 6:47 AM
Unknown Object (File)
Sep 30 2024, 3:26 PM

Details

Summary

Currently it is allowed to specify command line as

'bhyvectl --suspend=A --checkpoint=B'

It will trigger a bhyve process produces two checkpoint images
and then exit. This is slightly ambiguous.

So allow only --suspend or --checkpoint at the same time.

Sponsored by: vStack

Test Plan

Compile bhyvectl.

Run

bhyvectl --suspend=A --checkpoint=B

verify it is not allowed.

  1. Run bhyvectl --suspend=A

    verify it works.
  1. Run bhyvectl --checkpoint=B

    verify it works.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

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