From: Daniel P. Berrange Date: Fri, 22 Jan 2010 13:19:24 +0000 (+0000) Subject: Fix setup of compatability serial devices from console device X-Git-Tag: v0.7.6~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d8f5eb3bc349161d9cf32c9d5222d3fd0382a22;p=thirdparty%2Flibvirt.git Fix setup of compatability serial devices from console device The tag is supposed to result in addition of a single device for HVM guests. The 'targetType' attribute was missing though causing the compatibility code to add a second device * src/conf/domain_conf.c: Set targetType for serial device --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 595c46cafb..6d0e2dc868 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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;