]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Set targetModel based on targetType for serial devices
authorAndrea Bolognani <abologna@redhat.com>
Mon, 20 Nov 2017 12:02:30 +0000 (13:02 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Nov 2017 14:46:33 +0000 (15:46 +0100)
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
43 files changed:
src/qemu/qemu_domain.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-aarch64-pci-serial.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-pci-serial-dev-chardev.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 a719d14fead99426e9aedc2c8ea24c0dfae3e324..e141e113249272e3395d19a3c985ff932e8308f3 100644 (file)
@@ -4192,6 +4192,26 @@ qemuDomainChrDefPostParse(virDomainChrDefPtr chr,
         }
     }
 
+    /* Set the default target model */
+    if (chr->deviceType == VIR_DOMAIN_CHR_DEVICE_TYPE_SERIAL &&
+        chr->targetModel == VIR_DOMAIN_CHR_SERIAL_TARGET_MODEL_NONE) {
+        switch ((virDomainChrSerialTargetType) chr->targetType) {
+        case VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_ISA:
+            chr->targetModel = VIR_DOMAIN_CHR_SERIAL_TARGET_MODEL_ISA_SERIAL;
+            break;
+        case VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_USB:
+            chr->targetModel = VIR_DOMAIN_CHR_SERIAL_TARGET_MODEL_USB_SERIAL;
+            break;
+        case VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_PCI:
+            chr->targetModel = VIR_DOMAIN_CHR_SERIAL_TARGET_MODEL_PCI_SERIAL;
+            break;
+        case VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_NONE:
+        case VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_LAST:
+            /* Nothing to do */
+            break;
+        }
+    }
+
     /* clear auto generated unix socket path for inactive definitions */
     if (parseFlags & VIR_DOMAIN_DEF_PARSE_INACTIVE) {
         if (qemuDomainChrDefDropDefaultPath(chr, driver) < 0)
index 7c106f145c6229b5a438fe89c9e9d77346ffbeaa..cba43ca451316e751b79cec17530f3c6564da69e 100644 (file)
@@ -28,7 +28,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index e76d0211dc07f0fd470208475a29b1e98346b187..e9998d55427d1a3195f7a075284d499b52cfae2f 100644 (file)
@@ -29,7 +29,9 @@
     </controller>
     <serial type='dev'>
       <source path='/dev/ttyS2'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='dev'>
       <source path='/dev/ttyS2'/>
index ed67ada0d83bfd3ce7399610eb2dc7e0b66fb1c2..0e9dfe5789cd89de973fac56676fb78fad1afabc 100644 (file)
@@ -29,7 +29,9 @@
     </controller>
     <serial type='file'>
       <source path='/tmp/serial.log'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='file'>
       <source path='/tmp/serial.log'/>
index 420771dc9c2e2f4ea4bd6adf3af6e79099bbabc6..05374b38da77d419b6b1bb3cbc7ab191df46636e 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='file'>
       <source path='/tmp/serial.log'/>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 7c106f145c6229b5a438fe89c9e9d77346ffbeaa..cba43ca451316e751b79cec17530f3c6564da69e 100644 (file)
@@ -28,7 +28,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 3fe61ffa05060aef42ce25de8512ad847fe87524..1ac12440e2d805106ac6a93ab46cdda8b6a764cc 100644 (file)
@@ -30,7 +30,9 @@
     <serial type='tcp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
       <protocol type='telnet'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='tcp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
index 3fc9fd39b01e21b60929bbcbda1c9f77d0ce6f78..c10cee903bda3047e10eb79b5cab21b8867bfb87 100644 (file)
@@ -30,7 +30,9 @@
     <serial type='tcp'>
       <source mode='connect' host='127.0.0.1' service='9999'/>
       <protocol type='raw'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='tcp'>
       <source mode='connect' host='127.0.0.1' service='9999'/>
index 5b4af3fe952b3e0b5b406af3ee9e3487990181e4..fd56dda84ca065f0bc5998d6853226678420a23e 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 type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='udp'>
       <source mode='connect' service='9999'/>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='udp'>
       <source mode='bind' host='127.0.0.1' service='9999'/>
index 6bb291ff7f121fab27a943f15dd3499f2f5d86c3..70b192f6718acc2213ea14883704408df19826d5 100644 (file)
@@ -29,7 +29,9 @@
     </controller>
     <serial type='unix'>
       <source mode='connect' path='/tmp/serial.sock'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='unix'>
       <source mode='connect' path='/tmp/serial.sock'/>
index 41954fc85d17224786c562cad36af656a95de8ce..630844ea0f6e92c75f8c3ca93bab55f71dd529a8 100644 (file)
@@ -28,7 +28,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
     </controller>
     <serial type='vc'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='vc'>
       <target type='serial' port='0'/>
index 427f431cce677b2f6970feadb0b54dfbe8483d44..abe68a0a071df8e7fa29561bb16dcde48935b546 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <alias name='serial0'/>
     </serial>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <alias name='serial1'/>
     </serial>
     <serial type='tcp'>
       <source mode='bind' host='0.0.0.0' service='2445'/>
       <protocol type='raw'/>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
       <alias name='serial2'/>
     </serial>
     <console type='pty'>
index 144f6eff7afa7db23df56926785b74ce92ced04c..45161e1e2db4336d608d4be3cd5c2b05401df9d2 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <alias name='serial0'/>
     </serial>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <alias name='serial1'/>
     </serial>
     <serial type='tcp'>
       <source mode='bind' host='0.0.0.0' service='2445'/>
       <protocol type='raw'/>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
       <alias name='serial2'/>
     </serial>
     <console type='pty'>
index e6c4adb6f3d864f88af4e445cd3e1ce60ab07d95..89dc9e6e1d38c4f2895ad0d9c357f6da29fee927 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 type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='tcp'>
       <source mode='connect' host='127.0.0.1' service='5555' tls='no'/>
       <protocol type='raw'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='udp'>
       <source mode='bind' host='127.0.0.1' service='1111'/>
index f9724d320e21df324e271b92cdb93790eb318c87..52132a82d77bfd17d7d7ea6b0324dfe14676bb65 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='pty'>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index fddab31f077a29fb3f18d8031cbeec25fa806cce..b02a5a7db6b3aae77edf556c021a4c595afb6b59 100644 (file)
@@ -34,7 +34,9 @@
     </controller>
     <serial type='pty'>
       <log file='/tmp/log' append='on'/>
-      <target type='pci-serial' port='0'/>
+      <target type='pci-serial' port='0'>
+        <model name='pci-serial'/>
+      </target>
       <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
     </serial>
   </devices>
index 5ee73b527ea9ae976dd13757c245127ec6d2b403..b6d7a663619f5d70def58e036062f85cdd3db622 100644 (file)
@@ -33,7 +33,9 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index ad77f62d9e705f43adef9b118256b119e8cc3493..7d5bbdd0ab7503907b613098afdb56b9b14cb03a 100644 (file)
       <source path='/tmp/serial.file'>
         <seclabel model='dac' relabel='no'/>
       </source>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='unix'>
       <source mode='connect' path='/tmp/serial.sock'>
         <seclabel model='dac' relabel='no'/>
       </source>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='file'>
       <source path='/tmp/serial.file'>
index cd9d75c4b76a4049abdbfbcef3de182c691f6d3b..267b253b157790a6043eedbdbc916f6b01a49822 100644 (file)
@@ -27,7 +27,9 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 0c0bd7b348018ac4bec3d0a26321e3f333f25d0e..6a52800a334f7f65e3e18c43372a551b92ebdedd 100644 (file)
@@ -28,7 +28,9 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 305c53eab71a454ab1ac980edaaa0f260cc5b207..8c7bbb768ee055686f9d48f6c9d1d86a2f778e22 100644 (file)
@@ -31,7 +31,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index b38b3ce9878d201fe22fd9d0beaca94ad248e446..1a22b78b8cb5e5fa36d9454c2ca9f083f08ec254 100644 (file)
@@ -30,7 +30,9 @@
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 06192fbb4a9cf1991c6432edc9ccc1912fbc1213..5be590e759da04bbea802dcc0d67305710089551 100644 (file)
@@ -47,7 +47,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index a6eaa38079f7ad81891a800a6c890ea6e3e1ad6b..049b1472a8bedf1ab2cdd0eb2ad376e2e23a8b15 100644 (file)
       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='pty'>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index e6ad23424016d87fbf62075f09fa6741853303f0..4ec77d154fa14a953b22c7ab2f5438ef9ccf1ebe 100644 (file)
@@ -55,7 +55,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 66448ec3dd967e3b6f121100e6c91abbe2bbd2e4..ee65c3a5b1a31199a512aa55d824a3a884fc4a5c 100644 (file)
@@ -44,7 +44,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index b1240b8ed187d2f6ad3d5c2dc816645509fe573c..56792b99990579fa48e482ac5fb104db14226e6b 100644 (file)
@@ -57,7 +57,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 4f7ad323ed3d7dee8eb6b82948979fd19c358655..fc7b2e39ae592d0afe489a24efe809a028843bc3 100644 (file)
@@ -54,7 +54,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index a563b6dddf09f76456e527fc618dea272de8954e..496df0696c61cb843f4784f4df12a842751ae2a3 100644 (file)
@@ -22,7 +22,9 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index 2f704cc0a1553816dbec0712a240ea22d8184290..8f77ef043a718d3849a949a43a5225410c3a39a7 100644 (file)
@@ -28,7 +28,9 @@
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='dev'>
       <source path='/dev/ttyS2'/>
-      <target type='pci-serial' port='0'/>
+      <target type='pci-serial' port='0'>
+        <model name='pci-serial'/>
+      </target>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
     </serial>
     <console type='dev'>
index 59587b3c326d5ac289d8e065e84e21604530a3b4..9d4c5efe678205aa1106dd800047c5f36fa0d40f 100644 (file)
@@ -25,7 +25,9 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index a39e1fd015c3c02371073e6a91842a6583f97224..6059859abd5d0ca5a8329390a020921826d2ca70 100644 (file)
@@ -25,7 +25,9 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index 666eede1a5b56e8f639222c8a3c7471e6cd6834f..f3216523edac9562abcbdc1fb8e064f93c3320af 100644 (file)
@@ -26,7 +26,9 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index a563b6dddf09f76456e527fc618dea272de8954e..496df0696c61cb843f4784f4df12a842751ae2a3 100644 (file)
@@ -22,7 +22,9 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index a563b6dddf09f76456e527fc618dea272de8954e..496df0696c61cb843f4784f4df12a842751ae2a3 100644 (file)
@@ -22,7 +22,9 @@
       <target index='0'/>
     </controller>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
       <address type='spapr-vio' reg='0x30000000'/>
     </serial>
     <console type='pty'>
index 27baaa3f14331044deeb465f2053e23ba2b7e970..2437fdec448bccff3318f0e1b57800f973c65931 100644 (file)
@@ -79,7 +79,9 @@
       <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 63462e6f94af225b660621692bd2ff2a369e0394..e1d5cb9d72daf6cfaa24d44c71504e5618b8fc1d 100644 (file)
@@ -28,7 +28,9 @@
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
index c90bbeb7d5bb93c73268f348f2e41ac7f18e5c9c..ff92435afe32e7ad592062e5668847fae52e5d97 100644 (file)
@@ -28,7 +28,9 @@
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='spiceport'>
       <source channel='org.qemu.console.serial.0'/>
index a8790b50980ff3f5da48940aecc8c68d9b89d7fe..fded758eac686bea2683f0e6f92618c8d73c92c0 100644 (file)
     </controller>
     <controller type='pci' index='0' model='pci-root'/>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='null'>
-      <target type='isa-serial' port='1'/>
+      <target type='isa-serial' port='1'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='stdio'>
-      <target type='isa-serial' port='2'/>
+      <target type='isa-serial' port='2'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index a8af87b53bb06b68410a22a1f7dba3532f354ebd..76d894820408a3403e472f43a5860a71c6ac1022 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 type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <serial type='tcp'>
       <source mode='connect' host='127.0.0.1' service='5555'/>
       <protocol type='raw'/>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='udp'>
       <source mode='bind' host='127.0.0.1' service='1111'/>
index f439f57eadf77abf91e66fcb13a1c69b833cbee3..c4334f6ca537fd24d4a919b57432b68082e04b71 100644 (file)
@@ -42,7 +42,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index a2a6e5b3c80f6cd5362eeed3c4522afd030a2cad..8e761762f4bdc9f2fc4bfb11f65423553c9c6593 100644 (file)
@@ -48,7 +48,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>
index 72cbcc4cb5a60a9565fdbc2440d86e098c4b5a0f..49a7b550b3b81efbe8bc44adf7d3b374a856f753 100644 (file)
@@ -46,7 +46,9 @@
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
     </interface>
     <serial type='pty'>
-      <target type='isa-serial' port='0'/>
+      <target type='isa-serial' port='0'>
+        <model name='isa-serial'/>
+      </target>
     </serial>
     <console type='pty'>
       <target type='serial' port='0'/>