]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: assign addresses when converting xml to native
authorJán Tomko <jtomko@redhat.com>
Mon, 29 Apr 2013 17:54:07 +0000 (19:54 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 30 Apr 2013 08:23:44 +0000 (10:23 +0200)
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

src/qemu/qemu_driver.c

index 2d3b24a8133a1853d7efcd9c5397b55d5d7a9483..296efe386de3c36210e93528fa348fa9282886ce 100644 (file)
@@ -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)))