]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Allow migration over IPv6
authorJán Tomko <jtomko@redhat.com>
Fri, 22 Mar 2013 13:52:25 +0000 (14:52 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 2 Apr 2013 09:23:47 +0000 (11:23 +0200)
commitf03dcc5df141370c09da93135ad2f921c0af55b9
tree36d9f8a341e6bfb358a57ed4ed304b3bcd903f0f
parent8893df388edbc661603e0d886b27b39a4a7864d0
qemu: Allow migration over IPv6

Allow migration over IPv6 by listening on [::] instead of 0.0.0.0
when QEMU supports it (QEMU_CAPS_IPV6_MIGRATION) and there is
at least one v6 address configured on the system.

Use virURIParse in qemuMigrationPrepareDirect to allow parsing
IPv6 addresses, which would cause an 'incorrect :port' error
message before.

Move setting of migrateFrom from qemuMigrationPrepare{Direct,Tunnel}
after domain XML parsing, since we need the QEMU binary path from it
to get its capabilities.

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=846013
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_migration.c
tests/qemuhelptest.c