freebsd-dev/share/mk
John Baldwin 483d953a86 Initial support for bhyve save and restore.
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
2020-05-05 00:02:04 +00:00
..
atf.test.mk
auto.obj.mk
bsd.arch.inc.mk
bsd.clang-analyze.mk Move all sources from the llvm project into contrib/llvm-project. 2019-12-20 19:53:05 +00:00
bsd.compat.mk [PowerPC] Fix LIB32WMAKEFLAGS definition 2020-03-27 18:20:36 +00:00
bsd.compiler.mk Fix compilation with upstream clang builtin headers. 2020-04-06 23:38:46 +00:00
bsd.confs.mk
bsd.cpu.mk powerpc: --secure-plt only needs to pass to ld.bfd, not ld.lld 2020-03-30 16:24:05 +00:00
bsd.crunchgen.mk
bsd.dep.mk Allow per-file lex and yacc options. 2019-11-15 21:19:06 +00:00
bsd.dirs.mk
bsd.doc.mk
bsd.dtb.mk Introduce bsd.sysdir.mk to consolidate looking for the kernel. 2019-11-21 15:59:33 +00:00
bsd.endian.mk Remove sparc64 specific buid-system hacks 2020-02-26 18:49:20 +00:00
bsd.files.mk Use ${.ALLSRC:Ninstalldirs-*} instead of assuming order of .ALLSRC 2019-12-10 12:12:48 +00:00
bsd.incs.mk
bsd.info.mk
bsd.init.mk NO_OBJ: Always fix .OBJDIR regardless of AUTO_OBJ. 2020-04-07 17:07:04 +00:00
bsd.kmod.mk Introduce bsd.sysdir.mk to consolidate looking for the kernel. 2019-11-21 15:59:33 +00:00
bsd.lib.mk Remove the SYMVER build option. 2020-04-30 22:08:40 +00:00
bsd.libnames.mk Introduce stats(3), a flexible statistics gathering API. 2019-10-07 19:05:05 +00:00
bsd.linker.mk Adjust the regex used for LINKER_FREEBSD_VERSION so it captures the last 2020-02-24 19:11:52 +00:00
bsd.links.mk
bsd.man.mk
bsd.mkopt.mk
bsd.nls.mk
bsd.obj.mk NO_OBJ: Always fix .OBJDIR regardless of AUTO_OBJ. 2020-04-07 17:07:04 +00:00
bsd.opts.mk Remove the SYMVER build option. 2020-04-30 22:08:40 +00:00
bsd.own.mk Standardize EFI's ESP mount point. 2019-11-20 21:06:29 +00:00
bsd.port.mk
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.prog.mk Add -mno-relax to CFLAGS in bsd.prog/lib.mk instead of bsd.cpu.mk. 2020-01-08 17:49:34 +00:00
bsd.progs.mk
bsd.README Allow bsd.compat.mk to be reliably included outside Makefile.inc1. 2019-10-31 20:37:19 +00:00
bsd.snmpmod.mk
bsd.subdir.mk Support SUBDIR.${MK_FOO}.${MK_BAR} expresssions. 2020-03-17 18:17:32 +00:00
bsd.suffixes-posix.mk
bsd.suffixes.mk
bsd.symver.mk Remove the SYMVER build option. 2020-04-30 22:08:40 +00:00
bsd.sys.mk Fix port/kernel builds after r359681 2020-04-07 15:10:04 +00:00
bsd.sysdir.mk Introduce bsd.sysdir.mk to consolidate looking for the kernel. 2019-11-21 15:59:33 +00:00
bsd.test.mk
dirdeps-options.mk
dirdeps-targets.mk Update dirdeps.mk and gendirdeps.mk 2019-12-11 17:38:15 +00:00
dirdeps.mk Update dirdeps.mk and gendirdeps.mk 2019-12-11 17:38:15 +00:00
gendirdeps.mk Update dirdeps.mk and gendirdeps.mk 2019-12-11 17:38:15 +00:00
googletest.test.inc.mk Work around two -Werror warning issues in googletest, which have been 2020-01-31 18:26:23 +00:00
googletest.test.mk
host-target.mk
install-new.mk
kmod.opts.mk Add a kmod.opts.mk. 2019-11-21 18:14:26 +00:00
local.autodep.mk
local.dirdeps-options.mk retire BSD_CRTBEGIN option 2020-01-31 18:04:04 +00:00
local.dirdeps.mk retire the LLVM_LIBUNWIND option 2020-02-29 12:43:43 +00:00
local.gendirdeps.mk retire the LLVM_LIBUNWIND option 2020-02-29 12:43:43 +00:00
local.init.mk Include ${.CURDIR}/local.init.mk if it exists 2020-03-31 15:59:29 +00:00
local.meta.sys.mk Remove sparc64 specific buid-system hacks 2020-02-26 18:49:20 +00:00
local.sys.env.mk
local.sys.mk
Makefile Install bsd.sysdir.mk. 2019-11-21 19:54:10 +00:00
meta2deps.py
meta2deps.sh retire the LLVM_LIBUNWIND option 2020-02-29 12:43:43 +00:00
meta.autodep.mk
meta.stage.mk
meta.subdir.mk
meta.sys.mk Update dirdeps.mk and gendirdeps.mk 2019-12-11 17:38:15 +00:00
netbsd-tests.test.mk
plain.test.mk
src.init.mk
src.libnames.mk libauditd: make it a PRIVATELIB 2020-04-19 02:20:39 +00:00
src.lua.mk Add flua to the base system, install to /usr/libexec 2019-11-18 23:21:13 +00:00
src.opts.mk Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
src.sys.env.mk META_MODE: Allow 'make all install' to work with filemon. 2020-01-17 14:29:27 +00:00
src.sys.mk userland build: replace -fno-common with ${CFCOMMONFLAG} 2020-04-10 14:01:07 +00:00
src.sys.obj.mk
src.tools.mk Normalize deployment tools usage and definitions by putting into one place 2020-04-07 02:46:22 +00:00
stage-install.sh
suite.test.mk In suite.test.mk, test if ${DESTDIR} exists before attempting to run 2019-09-25 17:52:59 +00:00
sys.dependfile.mk
sys.mk Normalize deployment tools usage and definitions by putting into one place 2020-04-07 02:46:22 +00:00
tap.test.mk
version_gen.awk