[libvirt] [PATCH 4/4] qemu: migration: Skip few checks while doing offline migration
Ján Tomko
jtomko at redhat.com
Wed Oct 7 06:54:15 UTC 2015
On Tue, Oct 06, 2015 at 05:14:06PM +0200, Peter Krempa wrote:
> qemuMigrationIsAllowed would disallow offline migration if the VM
> contained host devices or memory modules. Since during offline migration
> we don't transfer any state we can safely migrate VMs with such
> configuration.
>
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1265049
> ---
> src/qemu/qemu_migration.c | 87 +++++++++++++++++++++++++----------------------
> 1 file changed, 46 insertions(+), 41 deletions(-)
> @@ -2229,6 +2223,7 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver,
>
> /* cancel migration if disk I/O error is emitted while migrating */
> if (flags & VIR_MIGRATE_ABORT_ON_ERROR &&
> + !(flags & VIR_MIGRATE_OFFLINE) &&
Extra space ^
> virDomainObjGetState(vm, &pauseReason) == VIR_DOMAIN_PAUSED &&
> pauseReason == VIR_DOMAIN_PAUSED_IOERROR) {
> virReportError(VIR_ERR_OPERATION_INVALID, "%s",
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20151007/ae1c7ecc/attachment-0001.sig>
More information about the libvir-list
mailing list