This series implements suspend and resume support for the bhyve driver.
Suspend and resume is still considered an experimental feature in bhyve,
mainly because the suspend files format is not finalized yet.
Therefore, it's not enabled by default and requires a rebuild to enable
it.

Luckily, it's easy to detect this feature in runtime, so capabilities
guard from using it when it's not supported.

I've been testing this change manually for a several weeks, and also
extended TCK tests. Related MRs:

https://gitlab.com/libvirt/libvirt-tck/-/merge_requests/95
https://gitlab.com/libvirt/libvirt-tck/-/merge_requests/96

Roman Bogorodskiy (5):
  bhyve: capabilities: detect suspend/resume support
  bhyve: implement suspend/resume support
  bhyve: validate suspend status and clean up snapshot files
  bhyve: forbid shutdown and reboot for suspended domains
  bhyve: fix domain autodestroy

 src/bhyve/bhyve_capabilities.c |   3 +
 src/bhyve/bhyve_capabilities.h |   1 +
 src/bhyve/bhyve_command.c      |  22 ++-
 src/bhyve/bhyve_command.h      |   5 +
 src/bhyve/bhyve_conf.c         |   3 +
 src/bhyve/bhyve_driver.c       | 114 +++++++++++++++-
 src/bhyve/bhyve_process.c      | 240 +++++++++++++++++++++++++++++----
 src/bhyve/bhyve_process.h      |   6 +
 src/bhyve/bhyve_utils.h        |   1 +
 tests/bhyvexml2argvtest.c      |   2 +-
 10 files changed, 370 insertions(+), 27 deletions(-)

-- 
2.56.0

Reply via email to