mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
conf: Ignore device address for guestfwd channel
It make no sense at all to have it there. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
6ee1c0ff67
commit
47a3dd46ea
@ -8456,8 +8456,13 @@ virDomainChrDefParseXML(xmlXPathContextPtr ctxt,
|
||||
}
|
||||
}
|
||||
|
||||
if (virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0)
|
||||
if (def->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_CHANNEL &&
|
||||
def->targetType == VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_GUESTFWD) {
|
||||
VIR_DEBUG("Ignoring device address for gustfwd channel");
|
||||
} else if (virDomainDeviceInfoParseXML(node, NULL, &def->info, flags) < 0) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
if (def->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL &&
|
||||
def->targetType == VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_USB &&
|
||||
|
Loading…
Reference in New Issue
Block a user