edecca
From ac3ea7982236832f5f2ae86b631aface267d035c Mon Sep 17 00:00:00 2001
edecca
Message-Id: <ac3ea7982236832f5f2ae86b631aface267d035c@dist-git>
edecca
From: Michal Privoznik <mprivozn@redhat.com>
edecca
Date: Tue, 21 Aug 2018 14:23:40 +0200
edecca
Subject: [PATCH] conf: Parse guestfwd channel device info again
edecca
edecca
https://bugzilla.redhat.com/show_bug.cgi?id=1610072
edecca
edecca
Due to historical reasons we were not parsing device info on
edecca
guestfwd channel. Sure, it doesn't make much sense to parse
edecca
<address/> but it surely makes sense to parse its alias (which
edecca
might be an user alias).
edecca
edecca
This reverts commit 47a3dd46ead20e6fdc30bcdc1b8e707e250d33da
edecca
which fixed https://bugzilla.redhat.com/show_bug.cgi?id=1172526.
edecca
edecca
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
edecca
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
edecca
(cherry picked from commit cab1843914d9ce5d1ca28477d2b48e5304e9e6f2)
edecca
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
edecca
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
edecca
---
edecca
 src/conf/domain_conf.c | 8 +-------
edecca
 1 file changed, 1 insertion(+), 7 deletions(-)
edecca
edecca
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
edecca
index 8a43e607e9..51a79ad8b1 100644
edecca
--- a/src/conf/domain_conf.c
edecca
+++ b/src/conf/domain_conf.c
edecca
@@ -12760,14 +12760,8 @@ virDomainChrDefParseXML(virDomainXMLOptionPtr xmlopt,
edecca
         }
edecca
     }
edecca
 
edecca
-    if (def->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL &&
edecca
-        def->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_GUESTFWD) {
edecca
-        VIR_DEBUG("Ignoring device address for gustfwd channel");
edecca
-    } else if (virDomainDeviceInfoParseXML(xmlopt, node,
edecca
-                                           &def->info, flags) < 0) {
edecca
+    if (virDomainDeviceInfoParseXML(xmlopt, node, &def->info, flags) < 0)
edecca
         goto error;
edecca
-    }
edecca
-
edecca
 
edecca
     if (def->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL &&
edecca
         def->targetType == VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_USB &&
edecca
-- 
edecca
2.18.0
edecca