]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Ignore device address for guestfwd channel
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 10 Dec 2014 09:56:09 +0000 (10:56 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 10 Dec 2014 10:21:31 +0000 (11:21 +0100)
It make no sense at all to have it there.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c

index db3369e20adaa9faffabde4a5f93675e7342f493..ec45b8cfc51bcc7f90701024a41b7e02f4e29a81 100644 (file)
@@ -8456,8 +8456,13 @@ virDomainChrDefParseXML(xmlXPathContextPtr ctxt,
         }
     }
 
-    if (virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0)
+    if (def->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL &&
+        def->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_GUESTFWD) {
+        VIR_DEBUG("Ignoring device address for gustfwd channel");
+    } else if (virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0) {
         goto error;
+    }
+
 
     if (def->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL &&
         def->targetType == VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_USB &&