]> xenbits.xensource.com Git - libvirt.git/commit
Set qemu migration speed unlimited when migrating to file
authorJim Fehlig <jfehlig@novell.com>
Fri, 26 Aug 2011 18:10:26 +0000 (12:10 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 14 Sep 2011 22:42:11 +0000 (16:42 -0600)
commitef1065cf5acad13767c054758cbe7f4e8af5d241
treefc8f1eb6302ea6921d799bd684fe5dcd7047e9d9
parent8fc40c511c08143cb64ff0d212942dde8e81c279
Set qemu migration speed unlimited when migrating to file

The qemu migration speed default is 32MiB/s as defined in migration.c

/* Migration speed throttling */
static int64_t max_throttle = (32 << 20);

There's no need to throttle migration when targeting a file, so set migration
speed to unlimited prior to migration, and restore to libvirt default value
after migration.

Default units is MB for migrate_set_speed monitor command, so
(INT64_MAX / (1024 * 1024)) is used for unlimited migration speed.

Tested with both json and text monitors.
src/qemu/qemu_migration.c