[Bug 289848] Enable by default BHYVE_SNAPSHOT

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Oct 2025 17:15:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289848

--- Comment #3 from Ed Maste <emaste@freebsd.org> ---
From jhb's commit that imported it (483d953a86a2507355f8287c5107dc827a0ff516):

    While the current implementation is useful for several uses cases, it
    has a few limitations.  The file format for saving the guest state is
    tied to the ABI of internal bhyve structures and is not
    self-describing (in that it does not communicate the set of device
    models present in the system).  In addition, the state saved for some
    device models closely matches the internal data structures which might
    prove a challenge for compatibility of snapshot files across a range
    of bhyve versions.  The file format also does not currently support
    versioning of individual chunks of state.  As a result, the current
    file format is not a fixed binary format and future revisions to save
    and restore will break binary compatiblity of snapshot files.  The
    goal is to move to a more flexible format that adds versioning,
    etc. and at that point to commit to providing a reasonable level of
    compatibility.  As a result, the current implementation is not enabled
    by default.  It can be enabled via the WITH_BHYVE_SNAPSHOT=yes option
    for userland builds, and the kernel option BHYVE_SHAPSHOT.

It is intentionally not enabled by default at present, and it's unclear if it
currently works, so it definitely won't be enabled by default in 15.0.

-- 
You are receiving this mail because:
You are the assignee for the bug.