]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Add QEMU driver support for job info on migration ops
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 3 Feb 2010 16:45:05 +0000 (16:45 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Mar 2010 16:23:24 +0000 (16:23 +0000)
commit0d3eee7fe8bcaa49af4c67970dc83a2505ec07ea
tree70db520415d1d7ee81bed7156913609eb04ccfc7
parentb85a53405cc4654b7fb81ad3335996d761f1f167
Add QEMU driver support for job info on migration ops

Introduce support for  virDomainGetJobInfo in the QEMU driver. This
allows for monitoring of any API that uses the 'info migrate' monitor
command. ie virDomainMigrate, virDomainSave and virDomainCoreDump

Unfortunately QEMU does not provide a way to monitor incoming migration
so we can't wire up virDomainRestore yet.

The virsh tool gets a new command 'domjobinfo' to query status

* src/qemu/qemu_driver.c: Record virDomainJobInfo and start time
  in qemuDomainObjPrivatePtr objects. Add generic shared handler
  for calling 'info migrate' with all migration based APIs.
* src/qemu/qemu_monitor_text.c: Fix parsing of 'info migration' reply
* tools/virsh.c: add new 'domjobinfo' command to query progress
src/qemu/qemu_driver.c
src/qemu/qemu_monitor_text.c
tools/virsh.c