freebsd-dev/sys/conf
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
..
config.mk Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
dtb.build.mk
dtb.mk
files Move route-specific ddb commands to route/route_ddb.c 2020-04-28 20:00:17 +00:00
files.amd64 Don't try ctfconvert on file without debug info. 2020-04-28 16:09:25 +00:00
files.arm Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
files.arm64 Add genet driver for Raspberry Pi 4B Ethernet 2020-04-22 00:42:10 +00:00
files.i386 More fixes to build the kernel with a compiler that defaults to -fno-common 2020-04-18 12:54:40 +00:00
files.mips
files.powerpc
files.riscv RISC-V: use physmem to manage physical memory 2020-04-19 00:18:16 +00:00
files.x86
kern.mk Retire the GENERICSF kernel config. 2020-04-27 21:51:22 +00:00
kern.opts.mk Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
kern.post.mk
kern.pre.mk
kmod_syms_prefix.awk
kmod_syms.awk
kmod.mk Allow kernel modules to build with a compiler that defaults to -fno-common 2020-04-18 12:54:35 +00:00
kmod.opts.mk
ldscript.amd64
ldscript.arm
ldscript.arm64
ldscript.i386
ldscript.kmod.amd64
ldscript.kmod.i386
ldscript.mips
ldscript.mips.cfe
ldscript.mips.mips64
ldscript.mips.octeon1
ldscript.powerpc
ldscript.powerpc64
ldscript.powerpcspe
ldscript.riscv
Makefile.amd64 Don't try ctfconvert on file without debug info. 2020-04-28 16:09:25 +00:00
Makefile.arm
Makefile.arm64
Makefile.i386
Makefile.mips
Makefile.powerpc
Makefile.riscv Retire the GENERICSF kernel config. 2020-04-27 21:51:22 +00:00
makeLINT.mk
makeLINT.sed
newvers.sh
NOTES
options Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
options.amd64 Initial support for bhyve save and restore. 2020-05-05 00:02:04 +00:00
options.arm
options.arm64
options.i386
options.mips
options.powerpc
options.riscv
sysent.mk
systags.sh
WITHOUT_SOURCELESS
WITHOUT_SOURCELESS_HOST
WITHOUT_SOURCELESS_UCODE