[PATCH 00/10] virDomainDriverAutoShutdown: Fix 3 bugs related to auto shutdown of VMs

Peter Krempa via Devel posted 10 patches 5 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1751546915.git.pkrempa@redhat.com
src/ch/ch_process.c            |   2 +
src/hypervisor/domain_cgroup.c |   6 +-
src/hypervisor/domain_cgroup.h |  11 +-
src/hypervisor/domain_driver.c | 390 +++++++++++++++++++--------------
src/hypervisor/domain_driver.h |   1 +
src/libvirt_private.syms       |   2 +-
src/lxc/lxc_cgroup.c           |   1 +
src/qemu/qemu.conf.in          |  15 +-
src/qemu/qemu_cgroup.c         |   7 +
src/qemu/qemu_conf.c           |  30 +--
src/qemu/qemu_conf.h           |   7 +-
src/qemu/qemu_driver.c         |  12 +-
src/util/vircgroup.c           |   7 +-
src/util/vircgroup.h           |   1 +
src/util/virsystemd.c          |  28 ++-
src/util/virsystemd.h          |   3 +-
tests/virsystemdtest.c         |  15 +-
17 files changed, 322 insertions(+), 216 deletions(-)
[PATCH 00/10] virDomainDriverAutoShutdown: Fix 3 bugs related to auto shutdown of VMs
Posted by Peter Krempa via Devel 5 months, 1 week ago
Following bugs are addressed:
 - ordering of systemd units, which cause the VMs to be killed prior to
   auto-shutdown finishing

 - transient VMs are attempted to be managesaved

 - restore of state is applied to VMs which the auto shutdown code
   didn't act on otherwise

Peter Krempa (10):
  virSystemdCreateMachine: Document @maxthreds
  cgroup: Unexport 'virDomainCgroupInitCgroup'
  qemu: conf: Store 'autoShutdown' config in
    virDomainDriverAutoShutdownConfig
  hypervisor: domain: Extract logic for auto shutdown to
    virDomainDriverAutoShutdownActive
  virSystemdCreateMachine: Add flag to invert machined unit dependencies
  cgroup: Plumb the 'daemonDomainShutdown' parameter of
    'virSystemdCreateMachine' to drivers
  qemu: Fix auto-shutdown of qemu VMs by the qemu driver
  hypervisor: Split out individual steps out of
    virDomainDriverAutoShutdown
  virDomainDriverAutoShutdownDoSave: Don't attempt to save transient VMs
  virDomainDriverAutoShutdown: Refactor selection logic for VMs

 src/ch/ch_process.c            |   2 +
 src/hypervisor/domain_cgroup.c |   6 +-
 src/hypervisor/domain_cgroup.h |  11 +-
 src/hypervisor/domain_driver.c | 390 +++++++++++++++++++--------------
 src/hypervisor/domain_driver.h |   1 +
 src/libvirt_private.syms       |   2 +-
 src/lxc/lxc_cgroup.c           |   1 +
 src/qemu/qemu.conf.in          |  15 +-
 src/qemu/qemu_cgroup.c         |   7 +
 src/qemu/qemu_conf.c           |  30 +--
 src/qemu/qemu_conf.h           |   7 +-
 src/qemu/qemu_driver.c         |  12 +-
 src/util/vircgroup.c           |   7 +-
 src/util/vircgroup.h           |   1 +
 src/util/virsystemd.c          |  28 ++-
 src/util/virsystemd.h          |   3 +-
 tests/virsystemdtest.c         |  15 +-
 17 files changed, 322 insertions(+), 216 deletions(-)

-- 
2.49.0