libvirt/tests/qemuhotplugtestdomains
Thomas Huth e7a65484ba qemu: Refuse to use "ps2" on machines that do not have this bus
The "ps2" bus is only available on certain machines like x86. On
machines like s390x, we should refuse to add a device to this bus
instead of silently ignoring it.

Looking at the QEMU sources, PS/2 is only available if the QEMU binary
has the "i8042" device, so let's check for that and only allow "ps2"
devices if this QEMU device is available, or if we're on x86 anyway
(so we don't have to fake the QEMU_CAPS_DEVICE_I8042 capability in
all the tests that use <input ... bus='ps2'/> in their xml data).

Reported-by: Sebastian Mitterle <smitterl@redhat.com>
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1763191
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-01-23 12:57:03 +01:00
..
qemuhotplug-base-ccw-live-with-2-ccw-virtio.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-explicit.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live-with-2-ccw-virtio+ccw-virtio-1-reverse.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live-with-ccw-virtio.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2-explicit.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live-with-ccw-virtio+ccw-virtio-2.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-ccw-live+ccw-virtio.xml qemu: Refuse to use "ps2" on machines that do not have this bus 2020-01-23 12:57:03 +01:00
qemuhotplug-base-live.xml
qemuhotplug-base-live+disk-scsi-wwn.xml
qemuhotplug-base-live+disk-scsi-wwn+disk-scsi-duplicate-wwn.xml
qemuhotplug-base-live+disk-scsi.xml
qemuhotplug-base-live+disk-usb.xml
qemuhotplug-base-live+disk-virtio.xml
qemuhotplug-base-live+guestfwd.xml
qemuhotplug-base-live+hostdev-pci.xml tests: Add test case for QEMU pci-hostdev hotplug 2019-09-09 16:44:24 +02:00
qemuhotplug-base-live+ivshmem-doorbell-detach.xml
qemuhotplug-base-live+ivshmem-doorbell.xml
qemuhotplug-base-live+ivshmem-plain-detach.xml
qemuhotplug-base-live+ivshmem-plain.xml
qemuhotplug-base-live+qemu-agent-detach.xml
qemuhotplug-base-live+qemu-agent.xml
qemuhotplug-base-live+watchdog-user-alias.xml
qemuhotplug-base-live+watchdog.xml
qemuhotplug-base-with-scsi-controller-live.xml
qemuhotplug-base-with-scsi-controller-live+disk-scsi-2.xml
qemuhotplug-base-without-scsi-controller-live.xml
qemuhotplug-base-without-scsi-controller-live+disk-scsi-2.xml qemuhotplugtest: Don't plug a SCSI disk at unit 7 2019-04-18 17:08:33 +02:00
qemuhotplug-base+qemu-agent-detach.xml
qemuhotplug-base+qemu-agent.xml
qemuhotplug-console-compat-2-live.xml
qemuhotplug-console-compat-2-live+console-virtio.xml
qemuhotplug-disk-cdrom.xml tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemuhotplug-graphics-spice-listen-network.xml tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemuhotplug-graphics-spice-timeout.xml tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemuhotplug-graphics-spice.xml tests: fix name of 32-bit x86 QEMU binary 2019-12-03 13:57:44 +00:00
qemuhotplug-pseries-base-live.xml tests: Add test case for QEMU pci-hostdev hotplug 2019-09-09 16:44:24 +02:00
qemuhotplug-pseries-base-live+hostdev-pci.xml tests: Add test case for QEMU pci-hostdev hotplug 2019-09-09 16:44:24 +02:00