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
F96400169: D38887.diff
Tue, Sep 24, 8:00 PM
Unknown Object (File)
Tue, Sep 24, 4:00 AM
Unknown Object (File)
Sat, Sep 14, 3:50 AM
Unknown Object (File)
Fri, Aug 30, 10:57 AM
Unknown Object (File)
Aug 6 2024, 8:58 AM
Unknown Object (File)
Aug 5 2024, 7:00 PM
Unknown Object (File)
Aug 2 2024, 7:31 AM
Unknown Object (File)
Jul 15 2024, 12:45 AM

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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