483d953a86
Save and restore (also known as suspend and resume) permits a snapshot to be taken of a guest's state that can later be resumed. In the current implementation, bhyve(8) creates a UNIX domain socket that is used by bhyvectl(8) to send a request to save a snapshot (and optionally exit after the snapshot has been taken). A snapshot currently consists of two files: the first holds a copy of guest RAM, and the second file holds other guest state such as vCPU register values and device model state. To resume a guest, bhyve(8) must be started with a matching pair of command line arguments to instantiate the same set of device models as well as a pointer to the saved snapshot. 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. Submitted by: Mihai Tiganus, Flavius Anton, Darius Mihai Submitted by: Elena Mihailescu, Mihai Carabas, Sergiu Weisz Relnotes: yes Sponsored by: University Politehnica of Bucharest Sponsored by: Matthew Grooms (student scholarships) Sponsored by: iXsystems Differential Revision: https://reviews.freebsd.org/D19495 |
||
---|---|---|
.. | ||
atf.test.mk | ||
auto.obj.mk | ||
bsd.arch.inc.mk | ||
bsd.clang-analyze.mk | ||
bsd.compat.mk | ||
bsd.compiler.mk | ||
bsd.confs.mk | ||
bsd.cpu.mk | ||
bsd.crunchgen.mk | ||
bsd.dep.mk | ||
bsd.dirs.mk | ||
bsd.doc.mk | ||
bsd.dtb.mk | ||
bsd.endian.mk | ||
bsd.files.mk | ||
bsd.incs.mk | ||
bsd.info.mk | ||
bsd.init.mk | ||
bsd.kmod.mk | ||
bsd.lib.mk | ||
bsd.libnames.mk | ||
bsd.linker.mk | ||
bsd.links.mk | ||
bsd.man.mk | ||
bsd.mkopt.mk | ||
bsd.nls.mk | ||
bsd.obj.mk | ||
bsd.opts.mk | ||
bsd.own.mk | ||
bsd.port.mk | ||
bsd.port.options.mk | ||
bsd.port.post.mk | ||
bsd.port.pre.mk | ||
bsd.port.subdir.mk | ||
bsd.prog.mk | ||
bsd.progs.mk | ||
bsd.README | ||
bsd.snmpmod.mk | ||
bsd.subdir.mk | ||
bsd.suffixes-posix.mk | ||
bsd.suffixes.mk | ||
bsd.symver.mk | ||
bsd.sys.mk | ||
bsd.sysdir.mk | ||
bsd.test.mk | ||
dirdeps-options.mk | ||
dirdeps-targets.mk | ||
dirdeps.mk | ||
gendirdeps.mk | ||
googletest.test.inc.mk | ||
googletest.test.mk | ||
host-target.mk | ||
install-new.mk | ||
kmod.opts.mk | ||
local.autodep.mk | ||
local.dirdeps-options.mk | ||
local.dirdeps.mk | ||
local.gendirdeps.mk | ||
local.init.mk | ||
local.meta.sys.mk | ||
local.sys.env.mk | ||
local.sys.mk | ||
Makefile | ||
meta2deps.py | ||
meta2deps.sh | ||
meta.autodep.mk | ||
meta.stage.mk | ||
meta.subdir.mk | ||
meta.sys.mk | ||
netbsd-tests.test.mk | ||
plain.test.mk | ||
src.init.mk | ||
src.libnames.mk | ||
src.lua.mk | ||
src.opts.mk | ||
src.sys.env.mk | ||
src.sys.mk | ||
src.sys.obj.mk | ||
src.tools.mk | ||
stage-install.sh | ||
suite.test.mk | ||
sys.dependfile.mk | ||
sys.mk | ||
tap.test.mk | ||
version_gen.awk |