Fix setup of compatability serial devices from console device

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
This commit is contained in:
Daniel P. Berrange 2010-01-22 13:19:24 +00:00
parent 3dc4268669
commit 7d8f5eb3bc

View 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;