From: Ján Tomko Date: Mon, 29 Apr 2013 17:54:07 +0000 (+0200) Subject: qemu: assign addresses when converting xml to native X-Git-Tag: v1.0.5~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11fc1beab6e018a88182f80056d35217c150b3de;p=thirdparty%2Flibvirt.git qemu: assign addresses when converting xml to native This adds addresses to domxml-to-native output and chooses the correct virtio devices for ccw and s390 machines. https://bugzilla.redhat.com/show_bug.cgi?id=957077 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 2d3b24a813..296efe386d 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5271,6 +5271,9 @@ static char *qemuConnectDomainXMLToNative(virConnectPtr conn, if (qemuAssignDeviceAliases(def, qemuCaps) < 0) goto cleanup; + if (qemuDomainAssignAddresses(def, qemuCaps, NULL) < 0) + goto cleanup; + if (!(cmd = qemuBuildCommandLine(conn, driver, def, &monConfig, monitor_json, qemuCaps, NULL, -1, NULL, VIR_NETDEV_VPORT_PROFILE_OP_NO_OP)))