render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
b971b8
From 171433e306e309374750477328de96f66410d13d Mon Sep 17 00:00:00 2001
b971b8
Message-Id: <171433e306e309374750477328de96f66410d13d@dist-git>
b971b8
From: Thomas Huth <thuth@redhat.com>
b971b8
Date: Mon, 8 Jun 2020 13:44:21 +0200
b971b8
Subject: [PATCH] qemu: Refuse to use "ps2" on machines that do not have this
b971b8
 bus
b971b8
b971b8
The "ps2" bus is only available on certain machines like x86. On
b971b8
machines like s390x, we should refuse to add a device to this bus
b971b8
instead of silently ignoring it.
b971b8
b971b8
Looking at the QEMU sources, PS/2 is only available if the QEMU binary
b971b8
has the "i8042" device, so let's check for that and only allow "ps2"
b971b8
devices if this QEMU device is available, or if we're on x86 anyway
b971b8
(so we don't have to fake the QEMU_CAPS_DEVICE_I8042 capability in
b971b8
all the tests that use <input ... bus='ps2'/> in their xml data).
b971b8
b971b8
Reported-by: Sebastian Mitterle <smitterl@redhat.com>
b971b8
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1763191
b971b8
Signed-off-by: Thomas Huth <thuth@redhat.com>
b971b8
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
b971b8
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
b971b8
(cherry picked from commit e7a65484ba7aa51c99ab3405117667a39b37e386)
b971b8
b971b8
Conflicts:
b971b8
src/qemu/qemu_capabilities.c: Context, because other caps were
b971b8
                              backported meanwhile
b971b8
src/qemu/qemu_capabilities.h: ditto
b971b8
tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml: ditto
b971b8
tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml: ditto
b971b8
b971b8
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1845055
b971b8
b971b8
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
b971b8
Message-Id: <89c778ca322240423dd81945daa165f5d6c803a9.1591616651.git.mprivozn@redhat.com>
b971b8
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
b971b8
---
b971b8
 src/qemu/qemu_capabilities.c                           |  2 ++
b971b8
 src/qemu/qemu_capabilities.h                           |  1 +
b971b8
 src/qemu/qemu_domain.c                                 | 10 +++++++++-
b971b8
 tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml      |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml      |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml      |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml        |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml        |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml        |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml        |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml        |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml        |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml       |  1 +
b971b8
 tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml       |  1 +
b971b8
 .../qemuhotplug-base-ccw-live+ccw-virtio.xml           |  6 ------
b971b8
 ...cw-live-with-2-ccw-virtio+ccw-virtio-1-explicit.xml |  6 ------
b971b8
 ...ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml |  6 ------
b971b8
 .../qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml    |  6 ------
b971b8
 ...-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml |  6 ------
b971b8
 ...plug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml |  6 ------
b971b8
 .../qemuhotplug-base-ccw-live-with-ccw-virtio.xml      |  6 ------
b971b8
 .../qemuhotplug-base-ccw-live.xml                      |  6 ------
b971b8
 38 files changed, 39 insertions(+), 49 deletions(-)
b971b8
b971b8
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
b971b8
index 5b16796c6b..7609f44efb 100644
b971b8
--- a/src/qemu/qemu_capabilities.c
b971b8
+++ b/src/qemu/qemu_capabilities.c
b971b8
@@ -566,6 +566,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
b971b8
               "blockdev-reopen.__com.redhat_rhel-av-8_2_0-api",
b971b8
               "storage.werror",
b971b8
               "pcie-root-port.hotplug",
b971b8
+              "i8042",
b971b8
     );
b971b8
 
b971b8
 
b971b8
@@ -1281,6 +1282,7 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
b971b8
     { "ramfb", QEMU_CAPS_DEVICE_RAMFB },
b971b8
     { "max-arm-cpu", QEMU_CAPS_ARM_MAX_CPU },
b971b8
     { "vhost-user-fs-device", QEMU_CAPS_DEVICE_VHOST_USER_FS },
b971b8
+    { "i8042", QEMU_CAPS_DEVICE_I8042 },
b971b8
 };
b971b8
 
b971b8
 static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[] = {
b971b8
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
b971b8
index aad02fcda5..15ebcb5077 100644
b971b8
--- a/src/qemu/qemu_capabilities.h
b971b8
+++ b/src/qemu/qemu_capabilities.h
b971b8
@@ -547,6 +547,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
b971b8
     QEMU_CAPS_BLOCKDEV_REOPEN_COM_REDHAT_AV_8_2_0_API, /* downstream support for blockdev reopen in rhel-av-8.2.0 */
b971b8
     QEMU_CAPS_STORAGE_WERROR, /* virtio-blk,scsi-hd.werror */
b971b8
     QEMU_CAPS_PCIE_ROOT_PORT_HOTPLUG, /* pcie-root-port.hotplug */
b971b8
+    QEMU_CAPS_DEVICE_I8042, /* PS/2 controller */
b971b8
 
b971b8
     QEMU_CAPS_LAST /* this must always be the last item */
b971b8
 } virQEMUCapsFlags;
b971b8
diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
b971b8
index cdf7b3e692..a92183334f 100644
b971b8
--- a/src/qemu/qemu_domain.c
b971b8
+++ b/src/qemu/qemu_domain.c
b971b8
@@ -8340,13 +8340,21 @@ qemuDomainDeviceDefValidateGraphics(const virDomainGraphicsDef *graphics,
b971b8
 
b971b8
 static int
b971b8
 qemuDomainDeviceDefValidateInput(const virDomainInputDef *input,
b971b8
-                                 const virDomainDef *def G_GNUC_UNUSED,
b971b8
+                                 const virDomainDef *def,
b971b8
                                  virQEMUCapsPtr qemuCaps)
b971b8
 {
b971b8
     const char *baseName;
b971b8
     int cap;
b971b8
     int ccwCap;
b971b8
 
b971b8
+    if (input->bus == VIR_DOMAIN_INPUT_BUS_PS2 && !ARCH_IS_X86(def->os.arch) &&
b971b8
+        !virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_I8042)) {
b971b8
+        virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
b971b8
+                       _("%s is not supported by this QEMU binary"),
b971b8
+                       virDomainInputBusTypeToString(input->bus));
b971b8
+        return -1;
b971b8
+    }
b971b8
+
b971b8
     if (input->bus != VIR_DOMAIN_INPUT_BUS_VIRTIO)
b971b8
         return 0;
b971b8
 
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml b/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
b971b8
index f2257d6bd2..b57cb2ab59 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_1.5.3.x86_64.xml
b971b8
@@ -84,6 +84,7 @@
b971b8
   <flag name='isa-serial'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>1005003</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100245</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
b971b8
index 3a70ec8146..5d0a14a5db 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_1.6.0.x86_64.xml
b971b8
@@ -89,6 +89,7 @@
b971b8
   <flag name='isa-serial'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>1006000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100243</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
b971b8
index cbb29ef2de..c196fe5e45 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
b971b8
@@ -91,6 +91,7 @@
b971b8
   <flag name='isa-serial'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>1007000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100244</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
b971b8
index a6d0981224..1edcaa4657 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.1.1.x86_64.xml
b971b8
@@ -107,6 +107,7 @@
b971b8
   <flag name='isa-serial'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2001001</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
b971b8
index 5a57cb7760..b95a9d42ad 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml
b971b8
@@ -139,6 +139,7 @@
b971b8
   <flag name='vhost-vsock'/>
b971b8
   <flag name='egl-headless'/>
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2010000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900287</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
b971b8
index 53872abf2f..7ebe97b6ab 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.10.0.x86_64.xml
b971b8
@@ -182,6 +182,7 @@
b971b8
   <flag name='egl-headless'/>
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='x86-max-cpu'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2010000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100287</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml
b971b8
index f70335db8f..b8eb3abd40 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.11.0.x86_64.xml
b971b8
@@ -188,6 +188,7 @@
b971b8
   <flag name='egl-headless'/>
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='x86-max-cpu'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2011000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100288</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
b971b8
index 74c80d2fe9..38a3103c4a 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.ppc64.xml
b971b8
@@ -153,6 +153,7 @@
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='memory-backend-file.align'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2011090</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900289</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
b971b8
index b51cee9f28..0c30cc75da 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.12.0.x86_64.xml
b971b8
@@ -197,6 +197,7 @@
b971b8
   <flag name='memory-backend-file.align'/>
b971b8
   <flag name='x86-max-cpu'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2011090</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100289</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
b971b8
index 86d85faa73..9b486effe1 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.4.0.x86_64.xml
b971b8
@@ -133,6 +133,7 @@
b971b8
   <flag name='sdl-gl'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2004000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
b971b8
index b217238307..147b179fdb 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.5.0.x86_64.xml
b971b8
@@ -139,6 +139,7 @@
b971b8
   <flag name='sdl-gl'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2005000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100243</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml
b971b8
index 862464c2f0..deb5c28790 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.6.0.ppc64.xml
b971b8
@@ -118,6 +118,7 @@
b971b8
   <flag name='nbd-tls'/>
b971b8
   <flag name='sdl-gl'/>
b971b8
   <flag name='hda-output'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2006000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900244</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
b971b8
index 6b96e37a16..fc508aba8a 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.6.0.x86_64.xml
b971b8
@@ -151,6 +151,7 @@
b971b8
   <flag name='sdl-gl'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2006000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100244</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
b971b8
index bc1359b0dd..ed199057dc 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.7.0.x86_64.xml
b971b8
@@ -156,6 +156,7 @@
b971b8
   <flag name='sdl-gl'/>
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2007000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100245</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
b971b8
index c7f3be3a1b..489b67f99a 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.8.0.x86_64.xml
b971b8
@@ -159,6 +159,7 @@
b971b8
   <flag name='hda-output'/>
b971b8
   <flag name='vhost-vsock'/>
b971b8
   <flag name='mch'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2008000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100246</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
b971b8
index a00d4b3d4c..3bc6ec8dab 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.ppc64.xml
b971b8
@@ -131,6 +131,7 @@
b971b8
   <flag name='blockdev-del'/>
b971b8
   <flag name='vhost-vsock'/>
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2009000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900247</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
b971b8
index 3d96f5f5b3..83fc6cde97 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_2.9.0.x86_64.xml
b971b8
@@ -176,6 +176,7 @@
b971b8
   <flag name='mch'/>
b971b8
   <flag name='iothread.poll-max-ns'/>
b971b8
   <flag name='x86-max-cpu'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2009000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100247</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml
b971b8
index 3b5a021dcf..9a0b9c05c2 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.ppc64.xml
b971b8
@@ -155,6 +155,7 @@
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>2012050</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900239</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
index 575b1c2a43..aa134f7da1 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.0.0.x86_64.xml
b971b8
@@ -203,6 +203,7 @@
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>3000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100239</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
index 591f054193..06bcba57bc 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml
b971b8
@@ -160,6 +160,7 @@
b971b8
   <flag name='bochs-display'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>3000091</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
index 6e434579ff..aa0219816d 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml
b971b8
@@ -206,6 +206,7 @@
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>3000092</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
index aa22eccc6f..9f7d322d07 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.ppc64.xml
b971b8
@@ -174,6 +174,7 @@
b971b8
   <flag name='machine.pseries.cap-ccf-assist'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
index 3c1baf9560..f54f15b23e 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.0.0.x86_64.xml
b971b8
@@ -211,6 +211,7 @@
b971b8
   <flag name='ramfb'/>
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>4000000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100240</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
index d5f2673fb6..961a13818b 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.1.0.x86_64.xml
b971b8
@@ -217,6 +217,7 @@
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='smp-dies'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>4001000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100241</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
index f5121fca94..0dc7503a07 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml
b971b8
@@ -178,6 +178,7 @@
b971b8
   <flag name='drive-nvme'/>
b971b8
   <flag name='smp-dies'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>4001050</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>42900242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
b971b8
index f6df71ff3e..452753b103 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_4.2.0.x86_64.xml
b971b8
@@ -222,6 +222,7 @@
b971b8
   <flag name='virtio-net.failover'/>
b971b8
   <flag name='vhost-user-fs'/>
b971b8
   <flag name='storage.werror'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>4002000</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100242</microcodeVersion>
b971b8
diff --git a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
b971b8
index d0b5f18c02..733e6b1eb4 100644
b971b8
--- a/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
b971b8
+++ b/tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
b971b8
@@ -225,6 +225,7 @@
b971b8
   <flag name='blockdev-snapshot.allow-write-only-overlay'/>
b971b8
   <flag name='storage.werror'/>
b971b8
   <flag name='pcie-root-port.hotplug'/>
b971b8
+  <flag name='i8042'/>
b971b8
   <version>4002091</version>
b971b8
   <kvmVersion>0</kvmVersion>
b971b8
   <microcodeVersion>43100241</microcodeVersion>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml
b971b8
index f501cde333..59c969e0f2 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live+ccw-virtio.xml
b971b8
@@ -44,12 +44,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-explicit.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-explicit.xml
b971b8
index 301658178f..d10b29be7e 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-explicit.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-explicit.xml
b971b8
@@ -54,12 +54,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'>
b971b8
       <alias name='balloon0'/>
b971b8
     </memballoon>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml
b971b8
index 223e929ad5..6eadbdcd18 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml
b971b8
@@ -54,12 +54,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml
b971b8
index c745d48558..68561b50a3 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml
b971b8
@@ -44,12 +44,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml
b971b8
index 3189294b65..0900f3c8e3 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml
b971b8
@@ -53,12 +53,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml
b971b8
index 3189294b65..0900f3c8e3 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml
b971b8
@@ -53,12 +53,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml
b971b8
index edf57fcd3f..31979c40f0 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live-with-ccw-virtio.xml
b971b8
@@ -43,12 +43,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
diff --git a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml
b971b8
index b97bba78c6..844b951940 100644
b971b8
--- a/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml
b971b8
+++ b/tests/qemuhotplugtestdomains/qemuhotplug-base-ccw-live.xml
b971b8
@@ -34,12 +34,6 @@
b971b8
       <alias name='virtio-serial0'/>
b971b8
       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
b971b8
     </controller>
b971b8
-    <input type='mouse' bus='ps2'>
b971b8
-      <alias name='input0'/>
b971b8
-    </input>
b971b8
-    <input type='keyboard' bus='ps2'>
b971b8
-      <alias name='input1'/>
b971b8
-    </input>
b971b8
     <memballoon model='none'/>
b971b8
     <panic model='s390'/>
b971b8
   </devices>
b971b8
-- 
b971b8
2.27.0
b971b8