]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix migration in text mode and shared storage migration in json mode
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 24 Jun 2010 18:58:36 +0000 (14:58 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Jun 2010 13:40:06 +0000 (14:40 +0100)
commit28e96d720b4d426f4d41e7c6ef50dd4a52ca084f
treed4875f85d1dd6bd7bef9727e81a0305987904d69
parent755b53f946107539ba6faf3022450b3d0bbe1d78
Fix migration in text mode and shared storage migration in json mode

The patches for shared storage migration were not correctly written
for json mode. Thus the 'blk' and 'inc' parameters were never being
set. In addition they didn't set the QEMU_MONITOR_MIGRATE_BACKGROUND
so migration was synchronous. Due to multiple bugs in QEMU's JSON
impl this wasn't noticed because it treated the sync migration requst
as asynchronous anyway. Finally 'background' parameter was converted
to take arbitrary flags but not renamed, and not all uses were changed
to unsigned int.

* src/qemu/qemu_driver.c: Set QEMU_MONITOR_MIGRATE_BACKGROUND in
  doNativeMigrate
* src/qemu/qemu_monitor_json.c: Process QEMU_MONITOR_MIGRATE_NON_SHARED_DISK
  and QEMU_MONITOR_MIGRATE_NON_SHARED_INC flags
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h,
  src/qemu/qemu_monitor_json.h, src/qemu/qemu_monitor_text.c,
  src/qemu/qemu_monitor_text.h: change 'int background' to
  'unsigned int flags' in migration APIs. Add logging of flags
  parameter
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_monitor_text.c
src/qemu/qemu_monitor_text.h