[libvirt] [PATCH 0/2] qemu: Add pre-migration hook

Jiri Denemark jdenemar at redhat.com
Tue Feb 28 21:49:08 UTC 2012

Current dxml parameter of virDomainMigrate{,ToURI}2 requires the caller
to have deep knowlege of the environment on the target machine.  In some
cases, this may be impractical or even impossible to achieve.  By adding
per-migration hook which may filter incoming domain XML and change it
appropriately called during the Prepare phase the destination host may
filter incoming domain XMLs and change them to fit local environment.
For example, such hook may relocate disk images.  The hook is not
allowed to make guest-visible changes to a domain XML.

Jiri Denemark (2):
  hooks: Add support for capturing hook output
  qemu: Add pre-migration hook

 daemon/libvirtd.c         |    6 +++---
 docs/hooks.html.in        |   35 +++++++++++++++++++++++------------
 src/lxc/lxc_driver.c      |    6 ++++--
 src/qemu/qemu_migration.c |   40 ++++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_process.c   |   12 ++++++++----
 src/util/hooks.c          |   25 ++++++++++++++++++++-----
 src/util/hooks.h          |    3 ++-
 7 files changed, 100 insertions(+), 27 deletions(-)


More information about the libvir-list mailing list