mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
conf: Drop virDomainChrDeviceType.targetTypeAttr
This attribute was used to decide whether to format the type attribute of the <target> element, but the logic didn't take into account all possible cases and as such could lead to unexpected results. Moreover, it's one more thing to keep track of, and can easily fall out of sync with other attributes. Now that we have VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE, we can use that value to signal that no specific target type has been configured for the serial device and as such the attribute should not be formatted at all. All other values are now formatted. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
6385c8c142
commit
4fb8ff9987
@ -11507,8 +11507,7 @@ virDomainChrDefaultTargetType(int devtype)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainChrTargetTypeFromString(virDomainChrDefPtr def,
|
virDomainChrTargetTypeFromString(int devtype,
|
||||||
int devtype,
|
|
||||||
const char *targetType)
|
const char *targetType)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
@ -11536,8 +11535,6 @@ virDomainChrTargetTypeFromString(virDomainChrDefPtr def,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
def->targetTypeAttr = true;
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11554,7 +11551,7 @@ virDomainChrDefParseTargetXML(virDomainChrDefPtr def,
|
|||||||
char *stateStr = NULL;
|
char *stateStr = NULL;
|
||||||
|
|
||||||
if ((def->targetType =
|
if ((def->targetType =
|
||||||
virDomainChrTargetTypeFromString(def, def->deviceType,
|
virDomainChrTargetTypeFromString(def->deviceType,
|
||||||
targetType)) < 0) {
|
targetType)) < 0) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("unknown target type '%s' specified for character device"),
|
_("unknown target type '%s' specified for character device"),
|
||||||
@ -16474,7 +16471,7 @@ virDomainChrEquals(virDomainChrDefPtr src,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
|
case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
|
||||||
if (src->targetTypeAttr != tgt->targetTypeAttr)
|
if (src->targetType != tgt->targetType)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ATTRIBUTE_FALLTHROUGH;
|
ATTRIBUTE_FALLTHROUGH;
|
||||||
@ -24035,7 +24032,7 @@ virDomainChrDefFormat(virBufferPtr buf,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
|
case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
|
||||||
if (def->targetTypeAttr) {
|
if (def->targetType != VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE) {
|
||||||
virBufferAsprintf(buf,
|
virBufferAsprintf(buf,
|
||||||
"<target type='%s' port='%d'/>\n",
|
"<target type='%s' port='%d'/>\n",
|
||||||
virDomainChrTargetTypeToString(def->deviceType,
|
virDomainChrTargetTypeToString(def->deviceType,
|
||||||
|
@ -1203,7 +1203,6 @@ struct _virDomainChrSourceDef {
|
|||||||
struct _virDomainChrDef {
|
struct _virDomainChrDef {
|
||||||
int deviceType; /* enum virDomainChrDeviceType */
|
int deviceType; /* enum virDomainChrDeviceType */
|
||||||
|
|
||||||
bool targetTypeAttr;
|
|
||||||
int targetType; /* enum virDomainChrConsoleTargetType ||
|
int targetType; /* enum virDomainChrConsoleTargetType ||
|
||||||
enum virDomainChrChannelTargetType ||
|
enum virDomainChrChannelTargetType ||
|
||||||
enum virDomainChrSerialTargetType according to deviceType */
|
enum virDomainChrSerialTargetType according to deviceType */
|
||||||
|
@ -1191,7 +1191,6 @@ prlsdkGetSerialInfo(PRL_HANDLE serialPort, virDomainChrDefPtr chr)
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
chr->deviceType = VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL;
|
chr->deviceType = VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL;
|
||||||
chr->targetTypeAttr = false;
|
|
||||||
pret = PrlVmDev_GetIndex(serialPort, &serialPortIndex);
|
pret = PrlVmDev_GetIndex(serialPort, &serialPortIndex);
|
||||||
prlsdkCheckRetGoto(pret, cleanup);
|
prlsdkCheckRetGoto(pret, cleanup);
|
||||||
chr->target.port = serialPortIndex;
|
chr->target.port = serialPortIndex;
|
||||||
@ -2864,7 +2863,7 @@ static int prlsdkCheckSerialUnsupportedParams(virDomainChrDefPtr chr)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chr->targetTypeAttr) {
|
if (chr->targetType != VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||||
_("Specified character device target type is not "
|
_("Specified character device target type is not "
|
||||||
"supported by vz driver."));
|
"supported by vz driver."));
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<serial type='dev'>
|
<serial type='dev'>
|
||||||
<source path='/dev/ttyS2'/>
|
<source path='/dev/ttyS2'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='dev'>
|
<console type='dev'>
|
||||||
<source path='/dev/ttyS2'/>
|
<source path='/dev/ttyS2'/>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<serial type='file'>
|
<serial type='file'>
|
||||||
<source path='/tmp/serial.log'/>
|
<source path='/tmp/serial.log'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='file'>
|
<console type='file'>
|
||||||
<source path='/tmp/serial.log'/>
|
<source path='/tmp/serial.log'/>
|
||||||
|
@ -28,11 +28,11 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='file'>
|
<serial type='file'>
|
||||||
<source path='/tmp/serial.log'/>
|
<source path='/tmp/serial.log'/>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<serial type='tcp'>
|
<serial type='tcp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||||
<protocol type='telnet'/>
|
<protocol type='telnet'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='tcp'>
|
<console type='tcp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
<serial type='tcp'>
|
<serial type='tcp'>
|
||||||
<source mode='connect' host='127.0.0.1' service='9999'/>
|
<source mode='connect' host='127.0.0.1' service='9999'/>
|
||||||
<protocol type='raw'/>
|
<protocol type='raw'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='tcp'>
|
<console type='tcp'>
|
||||||
<source mode='connect' host='127.0.0.1' service='9999'/>
|
<source mode='connect' host='127.0.0.1' service='9999'/>
|
||||||
|
@ -30,11 +30,11 @@
|
|||||||
<serial type='udp'>
|
<serial type='udp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||||
<source mode='connect' host='127.0.0.1' service='9998'/>
|
<source mode='connect' host='127.0.0.1' service='9998'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='udp'>
|
<serial type='udp'>
|
||||||
<source mode='connect' service='9999'/>
|
<source mode='connect' service='9999'/>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='udp'>
|
<console type='udp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='9999'/>
|
<source mode='bind' host='127.0.0.1' service='9999'/>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<serial type='unix'>
|
<serial type='unix'>
|
||||||
<source mode='connect' path='/tmp/serial.sock'/>
|
<source mode='connect' path='/tmp/serial.sock'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='unix'>
|
<console type='unix'>
|
||||||
<source mode='connect' path='/tmp/serial.sock'/>
|
<source mode='connect' path='/tmp/serial.sock'/>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='vc'>
|
<serial type='vc'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='vc'>
|
<console type='vc'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -72,13 +72,13 @@
|
|||||||
<alias name='serial0'/>
|
<alias name='serial0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<alias name='serial1'/>
|
<alias name='serial1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='tcp'>
|
<serial type='tcp'>
|
||||||
<source mode='bind' host='0.0.0.0' service='2445'/>
|
<source mode='bind' host='0.0.0.0' service='2445'/>
|
||||||
<protocol type='raw'/>
|
<protocol type='raw'/>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
<alias name='serial2'/>
|
<alias name='serial2'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -72,13 +72,13 @@
|
|||||||
<alias name='serial0'/>
|
<alias name='serial0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<alias name='serial1'/>
|
<alias name='serial1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='tcp'>
|
<serial type='tcp'>
|
||||||
<source mode='bind' host='0.0.0.0' service='2445'/>
|
<source mode='bind' host='0.0.0.0' service='2445'/>
|
||||||
<protocol type='raw'/>
|
<protocol type='raw'/>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
<alias name='serial2'/>
|
<alias name='serial2'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -29,12 +29,12 @@
|
|||||||
<serial type='udp'>
|
<serial type='udp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='1111'/>
|
<source mode='bind' host='127.0.0.1' service='1111'/>
|
||||||
<source mode='connect' host='127.0.0.1' service='2222'/>
|
<source mode='connect' host='127.0.0.1' service='2222'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='tcp'>
|
<serial type='tcp'>
|
||||||
<source mode='connect' host='127.0.0.1' service='5555' tls='no'/>
|
<source mode='connect' host='127.0.0.1' service='5555' tls='no'/>
|
||||||
<protocol type='raw'/>
|
<protocol type='raw'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='udp'>
|
<console type='udp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='1111'/>
|
<source mode='bind' host='127.0.0.1' service='1111'/>
|
||||||
|
@ -110,10 +110,10 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -25,13 +25,13 @@
|
|||||||
<source path='/tmp/serial.file'>
|
<source path='/tmp/serial.file'>
|
||||||
<seclabel model='dac' relabel='no'/>
|
<seclabel model='dac' relabel='no'/>
|
||||||
</source>
|
</source>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='unix'>
|
<serial type='unix'>
|
||||||
<source mode='connect' path='/tmp/serial.sock'>
|
<source mode='connect' path='/tmp/serial.sock'>
|
||||||
<seclabel model='dac' relabel='no'/>
|
<seclabel model='dac' relabel='no'/>
|
||||||
</source>
|
</source>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='file'>
|
<console type='file'>
|
||||||
<source path='/tmp/serial.file'>
|
<source path='/tmp/serial.file'>
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -104,10 +104,10 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<target index='0'/>
|
<target index='0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<address type='spapr-vio' reg='0x30000000'/>
|
<address type='spapr-vio' reg='0x30000000'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<target index='0'/>
|
<target index='0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<address type='spapr-vio' reg='0x30000000'/>
|
<address type='spapr-vio' reg='0x30000000'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<target index='0'/>
|
<target index='0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<address type='spapr-vio' reg='0x30000000'/>
|
<address type='spapr-vio' reg='0x30000000'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<target index='0'/>
|
<target index='0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<address type='spapr-vio' reg='0x30000000'/>
|
<address type='spapr-vio' reg='0x30000000'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<target index='0'/>
|
<target index='0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<address type='spapr-vio' reg='0x30000000'/>
|
<address type='spapr-vio' reg='0x30000000'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<target index='0'/>
|
<target index='0'/>
|
||||||
</controller>
|
</controller>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
<address type='spapr-vio' reg='0x30000000'/>
|
<address type='spapr-vio' reg='0x30000000'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='spiceport'>
|
<serial type='spiceport'>
|
||||||
<source channel='org.qemu.console.serial.0'/>
|
<source channel='org.qemu.console.serial.0'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='spiceport'>
|
<console type='spiceport'>
|
||||||
<source channel='org.qemu.console.serial.0'/>
|
<source channel='org.qemu.console.serial.0'/>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='spiceport'>
|
<serial type='spiceport'>
|
||||||
<source channel='org.qemu.console.serial.0'/>
|
<source channel='org.qemu.console.serial.0'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='spiceport'>
|
<console type='spiceport'>
|
||||||
<source channel='org.qemu.console.serial.0'/>
|
<source channel='org.qemu.console.serial.0'/>
|
||||||
|
@ -27,13 +27,13 @@
|
|||||||
</controller>
|
</controller>
|
||||||
<controller type='pci' index='0' model='pci-root'/>
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='null'>
|
<serial type='null'>
|
||||||
<target port='1'/>
|
<target type='isa-serial' port='1'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='stdio'>
|
<serial type='stdio'>
|
||||||
<target port='2'/>
|
<target type='isa-serial' port='2'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -29,12 +29,12 @@
|
|||||||
<serial type='udp'>
|
<serial type='udp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='1111'/>
|
<source mode='bind' host='127.0.0.1' service='1111'/>
|
||||||
<source mode='connect' host='127.0.0.1' service='2222'/>
|
<source mode='connect' host='127.0.0.1' service='2222'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<serial type='tcp'>
|
<serial type='tcp'>
|
||||||
<source mode='connect' host='127.0.0.1' service='5555'/>
|
<source mode='connect' host='127.0.0.1' service='5555'/>
|
||||||
<protocol type='raw'/>
|
<protocol type='raw'/>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='udp'>
|
<console type='udp'>
|
||||||
<source mode='bind' host='127.0.0.1' service='1111'/>
|
<source mode='bind' host='127.0.0.1' service='1111'/>
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
|
||||||
</interface>
|
</interface>
|
||||||
<serial type='pty'>
|
<serial type='pty'>
|
||||||
<target port='0'/>
|
<target type='isa-serial' port='0'/>
|
||||||
</serial>
|
</serial>
|
||||||
<console type='pty'>
|
<console type='pty'>
|
||||||
<target type='serial' port='0'/>
|
<target type='serial' port='0'/>
|
||||||
|
Loading…
Reference in New Issue
Block a user