]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix setup of compatability serial devices from console device
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jan 2010 13:19:24 +0000 (13:19 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Jan 2010 17:08:37 +0000 (17:08 +0000)
The <console> tag is supposed to result in addition of a single
<serial> device for HVM guests. The 'targetType' attribute was
missing though causing the compatibility code to add a second
<console> device

* src/conf/domain_conf.c: Set targetType for serial device

src/conf/domain_conf.c

index 595c46cafb3eb9a28627d71a4516895d62a3be6c..6d0e2dc868097719ca76d1950a6d93214472957e 100644 (file)
@@ -3748,6 +3748,7 @@ static virDomainDefPtr virDomainDefParseXML(virConnectPtr conn,
                 }
                 def->nserials = 1;
                 def->serials[0] = chr;
+                chr->targetType = VIR_DOMAIN_CHR_TARGET_TYPE_SERIAL;
             }
         } else {
             def->console = chr;