[libvirt] Re: [PATCH 0/5] kvm/qemu vs libvirtd restarts

Guido Günther agx at sigxcpu.org
Fri Dec 12 18:25:28 UTC 2008


Hi,
attached is a new version of the "let kvm/qemu survive libvirt restart"
patches. Since we have the VIR_DOMAIN_XML_INACTIVE changes already
applied we now only need to persist the monitor path, pid and current
domain state (running, paused, ...).
Cheers,
 -- Guido

Pathes:
  write pid file into stateDir
  daemonize qemu processes
  add XML parsing for vm status file
  save domain status during vm creation and remove it on shutdown.
  read saved vm status on libvirtd startup

 src/domain_conf.c                                  |   36 ++-
 src/domain_conf.h                                  |    6 +
 src/libvirt_sym.version.in                         |    3 +
 src/qemu_conf.c                                    |  198 +++++++++++++++
 src/qemu_conf.h                                    |   18 ++
 src/qemu_driver.c                                  |  262 ++++++++++++++++++--
 src/util.c                                         |   20 ++-
 src/util.h                                         |    2 +
 .../qemuxml2argv-hostdev-usb-address.args          |    2 +-
 tests/qemuxml2argvtest.c                           |    2 +
 10 files changed, 514 insertions(+), 35 deletions(-)




More information about the libvir-list mailing list