]> xenbits.xensource.com Git - libvirt.git/commitdiff
conf: Drop virDomainChrDeviceType.targetTypeAttr
authorAndrea Bolognani <abologna@redhat.com>
Fri, 10 Nov 2017 13:54:19 +0000 (14:54 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Nov 2017 14:46:32 +0000 (15:46 +0100)
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>
43 files changed:
src/conf/domain_conf.c
src/conf/domain_conf.h
src/vz/vz_sdk.c
tests/qemuargv2xmldata/qemuargv2xml-console-compat.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-dev.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-file.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-many.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-pty.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-tcp-telnet.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-tcp.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-udp.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-unix.xml
tests/qemuargv2xmldata/qemuargv2xml-serial-vc.xml
tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live+console-virtio.xml
tests/qemuhotplugtestdomains/qemuhotplug-console-compat-2-live.xml
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-tlsx509-chardev-notls.xml
tests/qemuxml2argvdata/qemuxml2argv-user-aliases.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-bios-nvram-os-interleave.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-chardev-label.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-console-compat-auto.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-console-compat.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-console-compat2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-console-virtio-many.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-interface-driver.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-interface-server.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-bandwidth.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-bandwidth2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-coalesce.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-net-mtu.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-panic-pseries.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-cpu-compat-power9.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-cpu-compat.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-cpu-exact.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-panic-missing.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-panic-no-address.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-q35-virt-manager-basic.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-serial-spiceport-nospice.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-serial-spiceport.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-serial-target-port-auto.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-serial-tcp-tlsx509-chardev.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-tap-vhost-incorrect.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-tap-vhost.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-vhost_queues.xml

index 1b11d39b55bb30328fb0d1cbde0b791e3e8a7642..6ba6f923cf527b6aedfc0d7c8dde0a6c23a6f51f 100644 (file)
@@ -11507,8 +11507,7 @@ virDomainChrDefaultTargetType(int devtype)
 }
 
 static int
-virDomainChrTargetTypeFromString(virDomainChrDefPtr def,
-                                 int devtype,
+virDomainChrTargetTypeFromString(int devtype,
                                  const char *targetType)
 {
     int ret = -1;
@@ -11536,8 +11535,6 @@ virDomainChrTargetTypeFromString(virDomainChrDefPtr def,
         break;
     }
 
-    def->targetTypeAttr = true;
-
     return ret;
 }
 
@@ -11554,7 +11551,7 @@ virDomainChrDefParseTargetXML(virDomainChrDefPtr def,
     char *stateStr = NULL;
 
     if ((def->targetType =
-         virDomainChrTargetTypeFromString(def, def->deviceType,
+         virDomainChrTargetTypeFromString(def->deviceType,
                                           targetType)) < 0) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("unknown target type '%s' specified for character device"),
@@ -16474,7 +16471,7 @@ virDomainChrEquals(virDomainChrDefPtr src,
         break;
 
     case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
-        if (src->targetTypeAttr != tgt->targetTypeAttr)
+        if (src->targetType != tgt->targetType)
             return false;
 
         ATTRIBUTE_FALLTHROUGH;
@@ -24035,7 +24032,7 @@ virDomainChrDefFormat(virBufferPtr buf,
         break;
 
     case VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL:
-        if (def->targetTypeAttr) {
+        if (def->targetType != VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE) {
             virBufferAsprintf(buf,
                               "<target type='%s' port='%d'/>\n",
                               virDomainChrTargetTypeToString(def->deviceType,
index 83b6e9ee5dbe86704be70501c3f8cefd0dda9031..ac6c4a0ed0e44d36252e2e67cb5481473f0c5b83 100644 (file)
@@ -1203,7 +1203,6 @@ struct _virDomainChrSourceDef {
 struct _virDomainChrDef {
     int deviceType; /* enum virDomainChrDeviceType */
 
-    bool targetTypeAttr;
     int targetType; /* enum virDomainChrConsoleTargetType ||
                        enum virDomainChrChannelTargetType ||
                        enum virDomainChrSerialTargetType according to deviceType */
index 819b02b1e40c88e13ccb4374d905bbce96d1b78f..eea5f6fc689bedea97e058f8cd71e9c07fc6779a 100644 (file)
@@ -1191,7 +1191,6 @@ prlsdkGetSerialInfo(PRL_HANDLE serialPort, virDomainChrDefPtr chr)
     int ret = -1;
 
     chr->deviceType = VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL;
-    chr->targetTypeAttr = false;
     pret = PrlVmDev_GetIndex(serialPort, &serialPortIndex);
     prlsdkCheckRetGoto(pret, cleanup);
     chr->target.port = serialPortIndex;
@@ -2864,7 +2863,7 @@ static int prlsdkCheckSerialUnsupportedParams(virDomainChrDefPtr chr)
         return -1;
     }
 
-    if (chr->targetTypeAttr) {
+    if (chr->targetType != VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
                        _("Specified character device target type is not "
                          "supported by vz driver."));
index f512844427ec5676c0214f31fff8f98c0da9ca0b..7c106f145c6229b5a438fe89c9e9d77346ffbeaa 100644 (file)
@@ -28,7 +28,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index aac814d59f97b597fc7538067ae5d7a012a794b8..e76d0211dc07f0fd470208475a29b1e98346b187 100644 (file)
@@ -29,7 +29,7 @@
     </controller>
     <serial type='dev'>
       <source path='/dev/ttyS2'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='dev'>
       <source path='/dev/ttyS2'/>
index 64819a48ae6c553505e8aa7dd8d5132ea7e5bed8..ed67ada0d83bfd3ce7399610eb2dc7e0b66fb1c2 100644 (file)
@@ -29,7 +29,7 @@
     </controller>
     <serial type='file'>
       <source path='/tmp/serial.log'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='file'>
       <source path='/tmp/serial.log'/>
index e00afe317fd059c75dddf8f6c686413c02dd67db..420771dc9c2e2f4ea4bd6adf3af6e79099bbabc6 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='file'>
       <source path='/tmp/serial.log'/>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index f512844427ec5676c0214f31fff8f98c0da9ca0b..7c106f145c6229b5a438fe89c9e9d77346ffbeaa 100644 (file)
@@ -28,7 +28,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index c35a4ca73a2c8bd265139c17e766a5a64bba0f95..3fe61ffa05060aef42ce25de8512ad847fe87524 100644 (file)
@@ -30,7 +30,7 @@
     <serial type='tcp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
       <protocol type='telnet'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='tcp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
index 0d218f54822836cf4442af02390bb260a9d1239e..3fc9fd39b01e21b60929bbcbda1c9f77d0ce6f78 100644 (file)
@@ -30,7 +30,7 @@
     <serial type='tcp'>
       <source mode='connect' host='127.0.0.1' service='9999'/>
       <protocol type='raw'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='tcp'>
       <source mode='connect' host='127.0.0.1' service='9999'/>
index f7069d541f01baee8f999ce2619808a6e5283c5b..5b4af3fe952b3e0b5b406af3ee9e3487990181e4 100644 (file)
     <serial type='udp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
       <source mode='connect' host='127.0.0.1' service='9998'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='udp'>
       <source mode='connect' service='9999'/>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
     </serial>
     <console type='udp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
index 14fc8fc7c98e569ae3c61ea2412885eec1f944fa..6bb291ff7f121fab27a943f15dd3499f2f5d86c3 100644 (file)
@@ -29,7 +29,7 @@
     </controller>
     <serial type='unix'>
       <source mode='connect' path='/tmp/serial.sock'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='unix'>
       <source mode='connect' path='/tmp/serial.sock'/>
index 95aa1c7b9bed74ea241f460be759074ac8aa3ccb..41954fc85d17224786c562cad36af656a95de8ce 100644 (file)
@@ -28,7 +28,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='vc'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='vc'>
       <target type='serial' port='0'/>
index 4e1dd49c225c3011d4e89d7709a46d1089696a49..427f431cce677b2f6970feadb0b54dfbe8483d44 100644 (file)
       <alias name='serial0'/>
     </serial>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <alias name='serial1'/>
     </serial>
     <serial type='tcp'>
       <source mode='bind' host='0.0.0.0' service='2445'/>
       <protocol type='raw'/>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
       <alias name='serial2'/>
     </serial>
     <console type='pty'>
index c56d13ef4a78bd930a428b08bae6b2a4f77e6ce7..144f6eff7afa7db23df56926785b74ce92ced04c 100644 (file)
       <alias name='serial0'/>
     </serial>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <alias name='serial1'/>
     </serial>
     <serial type='tcp'>
       <source mode='bind' host='0.0.0.0' service='2445'/>
       <protocol type='raw'/>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
       <alias name='serial2'/>
     </serial>
     <console type='pty'>
index a95e29ad8a7afea72e286d4178ce4d50ccbddbec..e6c4adb6f3d864f88af4e445cd3e1ce60ab07d95 100644 (file)
     <serial type='udp'>
       <source mode='bind' host='127.0.0.1' service='1111'/>
       <source mode='connect' host='127.0.0.1' service='2222'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='tcp'>
       <source mode='connect' host='127.0.0.1' service='5555' tls='no'/>
       <protocol type='raw'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='udp'>
       <source mode='bind' host='127.0.0.1' service='1111'/>
index c760098fe0ed98996a8a95411810626780f06b89..f9724d320e21df324e271b92cdb93790eb318c87 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='pty'>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 033e86d3a37ee8c5ea5d4f71b4a1a8ae048ca768..5ee73b527ea9ae976dd13757c245127ec6d2b403 100644 (file)
@@ -33,7 +33,7 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 840bf69f619304fbbca789981311e453e44e0960..ad77f62d9e705f43adef9b118256b119e8cc3493 100644 (file)
       <source path='/tmp/serial.file'>
         <seclabel model='dac' relabel='no'/>
       </source>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='unix'>
       <source mode='connect' path='/tmp/serial.sock'>
         <seclabel model='dac' relabel='no'/>
       </source>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
     </serial>
     <console type='file'>
       <source path='/tmp/serial.file'>
index e76f857aee48ba390d4d07bdd811b513f8c16b5f..cd9d75c4b76a4049abdbfbcef3de182c691f6d3b 100644 (file)
@@ -27,7 +27,7 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 8dc361dfc642e1c28d8b1d479ab7ea817c6d765d..0c0bd7b348018ac4bec3d0a26321e3f333f25d0e 100644 (file)
@@ -28,7 +28,7 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 858b2c67503407f19b59d0aa7230d8cb16cd7ba5..305c53eab71a454ab1ac980edaaa0f260cc5b207 100644 (file)
@@ -31,7 +31,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index f9f9abd2dfc8a57766d7978cdf98b4d5a0a5ee40..b38b3ce9878d201fe22fd9d0beaca94ad248e446 100644 (file)
@@ -30,7 +30,7 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 1c550176789f4a3b8ab9d1c9e54710bc4dd84497..06192fbb4a9cf1991c6432edc9ccc1912fbc1213 100644 (file)
@@ -47,7 +47,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 95b6e2df1a911d7e0b11886b9c4c4a3552e1f25a..a6eaa38079f7ad81891a800a6c890ea6e3e1ad6b 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='pty'>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 7fe69bd6cbe74cfed12af9a82eb2b4ca25566067..e6ad23424016d87fbf62075f09fa6741853303f0 100644 (file)
@@ -55,7 +55,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index b631e5b5150817507ddfcf24edb1ef8c18928ac9..66448ec3dd967e3b6f121100e6c91abbe2bbd2e4 100644 (file)
@@ -44,7 +44,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index fd5fdbece52817f31b9beb9025cfc094f487446a..b1240b8ed187d2f6ad3d5c2dc816645509fe573c 100644 (file)
@@ -57,7 +57,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 4571b6a8293277def7fab155b0369f438669eb92..4f7ad323ed3d7dee8eb6b82948979fd19c358655 100644 (file)
@@ -54,7 +54,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 7fb49feb0f382ac779272fed2c826064f4f948ca..a563b6dddf09f76456e527fc618dea272de8954e 100644 (file)
@@ -22,7 +22,7 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index f0200562196a9979fe28977d845e14c7d08b2bb7..59587b3c326d5ac289d8e065e84e21604530a3b4 100644 (file)
@@ -25,7 +25,7 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index 3cbce9fe6a8e918d49a688d26e6cb67612b839ed..a39e1fd015c3c02371073e6a91842a6583f97224 100644 (file)
@@ -25,7 +25,7 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index d69b387686dc29814c3dcb09cf6904099a158ea0..666eede1a5b56e8f639222c8a3c7471e6cd6834f 100644 (file)
@@ -26,7 +26,7 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index 7fb49feb0f382ac779272fed2c826064f4f948ca..a563b6dddf09f76456e527fc618dea272de8954e 100644 (file)
@@ -22,7 +22,7 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index 7fb49feb0f382ac779272fed2c826064f4f948ca..a563b6dddf09f76456e527fc618dea272de8954e 100644 (file)
@@ -22,7 +22,7 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index c4ccd98aac8c4a61c9b076f578bad4e34374122c..27baaa3f14331044deeb465f2053e23ba2b7e970 100644 (file)
@@ -79,7 +79,7 @@
       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 79c4ebc734c44774c16318edf1169ac40b80efd9..63462e6f94af225b660621692bd2ff2a369e0394 100644 (file)
@@ -28,7 +28,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
index 9527b2d15f0d8b034c47798bcf4c8fed6ae304b4..c90bbeb7d5bb93c73268f348f2e41ac7f18e5c9c 100644 (file)
@@ -28,7 +28,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
index 71516a31a973b25b63d2e94f2591605b1fa4ac04..a8790b50980ff3f5da48940aecc8c68d9b89d7fe 100644 (file)
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='null'>
-      <target port='1'/>
+      <target type='isa-serial' port='1'/>
     </serial>
     <serial type='stdio'>
-      <target port='2'/>
+      <target type='isa-serial' port='2'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 18f51e53836d4bec32d8821d155842b75f26a4d5..a8af87b53bb06b68410a22a1f7dba3532f354ebd 100644 (file)
     <serial type='udp'>
       <source mode='bind' host='127.0.0.1' service='1111'/>
       <source mode='connect' host='127.0.0.1' service='2222'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <serial type='tcp'>
       <source mode='connect' host='127.0.0.1' service='5555'/>
       <protocol type='raw'/>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='udp'>
       <source mode='bind' host='127.0.0.1' service='1111'/>
index a6be7542c8d34d9e505bb10b50b0ebf0793ce732..f439f57eadf77abf91e66fcb13a1c69b833cbee3 100644 (file)
@@ -42,7 +42,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 7787befb8888be1594339ec219d1a2a756ff11f1..a2a6e5b3c80f6cd5362eeed3c4522afd030a2cad 100644 (file)
@@ -48,7 +48,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 8c27470ddf197505cbc3ef7e7356cd5e3d71d202..72cbcc4cb5a60a9565fdbc2440d86e098c4b5a0f 100644 (file)
@@ -46,7 +46,7 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target port='0'/>
+      <target type='isa-serial' port='0'/>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>