]> xenbits.xensource.com Git - libvirt.git/commit
Introduce migration cookies to QEMU driver
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 24 Jan 2011 18:06:16 +0000 (18:06 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 May 2011 14:18:20 +0000 (15:18 +0100)
commit8654175c5b0c3db9e5f70907f102f0f900355d28
treeb3cf64d0d378f7edd9a20671814110aaf577970b
parent9ab245585b65b822782d05ee24cc682cf2f0f801
Introduce migration cookies to QEMU driver

The migration protocol has support for a 'cookie' parameter which
is an opaque array of bytes as far as libvirt is concerned. Drivers
may use this for passing around arbitrary extra data they might
need during migration. The QEMU driver needs to do a few things:

 - Pass hostname/uuid to allow strict protection against localhost
   migration attempts
 - Pass SPICE/VNC server port from the target back to the source to
   allow seamless relocation of client sessions
 - Pass lock driver state from source to destination

This patch introduces the basic glue for handling cookies
but only includes the host/guest UUID & name.

* src/libvirt_private.syms: Export virXMLParseStrHelper
* src/qemu/qemu_migration.c, src/qemu/qemu_migration.h: Parsing
  and formatting of migration cookies
* src/qemu/qemu_driver.c: Pass in cookie parameters where possible
* src/remote/remote_protocol.h, src/remote/remote_protocol.x: Change
  cookie max length to 16384 bytes
cfg.mk
src/libvirt_private.syms
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h
src/remote/remote_protocol.x