From 7d8f5eb3bc349161d9cf32c9d5222d3fd0382a22 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Fri, 22 Jan 2010 13:19:24 +0000 Subject: [PATCH] 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 --- src/conf/domain_conf.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2