libvirt/tests/qemucapabilitiesdata/caps_1.7.0.x86_64.xml
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

187 lines
6.6 KiB
XML

<qemuCaps>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<qemuctime>0</qemuctime>
<selfctime>0</selfctime>
<selfvers>0</selfvers>
<flag name='kvm'/>
<flag name='no-hpet'/>
<flag name='spice'/>
<flag name='hda-duplex'/>
<flag name='ccid-emulated'/>
<flag name='ccid-passthru'/>
<flag name='virtio-tx-alg'/>
<flag name='virtio-blk-pci.ioeventfd'/>
<flag name='sga'/>
<flag name='virtio-blk-pci.event_idx'/>
<flag name='virtio-net-pci.event_idx'/>
<flag name='piix3-usb-uhci'/>
<flag name='piix4-usb-uhci'/>
<flag name='usb-ehci'/>
<flag name='ich9-usb-ehci1'/>
<flag name='vt82c686b-usb-uhci'/>
<flag name='pci-ohci'/>
<flag name='usb-redir'/>
<flag name='usb-hub'/>
<flag name='ich9-ahci'/>
<flag name='no-acpi'/>
<flag name='virtio-blk-pci.scsi'/>
<flag name='scsi-disk.channel'/>
<flag name='scsi-block'/>
<flag name='hda-micro'/>
<flag name='dump-guest-memory'/>
<flag name='nec-usb-xhci'/>
<flag name='lsi'/>
<flag name='virtio-scsi-pci'/>
<flag name='blockio'/>
<flag name='disable-s3'/>
<flag name='disable-s4'/>
<flag name='usb-redir.filter'/>
<flag name='ide-drive.wwn'/>
<flag name='scsi-disk.wwn'/>
<flag name='seccomp-sandbox'/>
<flag name='reboot-timeout'/>
<flag name='vnc'/>
<flag name='qxl'/>
<flag name='VGA'/>
<flag name='cirrus-vga'/>
<flag name='vmware-svga'/>
<flag name='device-video-primary'/>
<flag name='usb-serial'/>
<flag name='nbd-server'/>
<flag name='virtio-rng'/>
<flag name='rng-random'/>
<flag name='rng-egd'/>
<flag name='megasas'/>
<flag name='pci-bridge'/>
<flag name='vfio-pci'/>
<flag name='mem-merge'/>
<flag name='drive-discard'/>
<flag name='dmi-to-pci-bridge'/>
<flag name='i440fx-pci-hole64-size'/>
<flag name='q35-pci-hole64-size'/>
<flag name='usb-storage'/>
<flag name='usb-storage.removable'/>
<flag name='virtio-mmio'/>
<flag name='ich9-intel-hda'/>
<flag name='kvm-pit-lost-tick-policy'/>
<flag name='boot-strict'/>
<flag name='pvpanic'/>
<flag name='spice-file-xfer-disable'/>
<flag name='usb-kbd'/>
<flag name='msg-timestamp'/>
<flag name='usb-audio'/>
<flag name='splash-timeout'/>
<flag name='ivshmem'/>
<flag name='drive-iotune-max'/>
<flag name='VGA.vgamem_mb'/>
<flag name='vmware-svga.vgamem_mb'/>
<flag name='qxl.vgamem_mb'/>
<flag name='pci-serial'/>
<flag name='ioh3420'/>
<flag name='x3130-upstream'/>
<flag name='xio3130-downstream'/>
<flag name='rtl8139'/>
<flag name='e1000'/>
<flag name='virtio-net'/>
<flag name='qxl.vram64_size_mb'/>
<flag name='nec-usb-xhci-ports'/>
<flag name='vhost-scsi'/>
<flag name='query-cpu-definitions'/>
<flag name='kernel-irqchip'/>
<flag name='isa-serial'/>
<flag name='hda-output'/>
<flag name='mch'/>
<flag name='i8042'/>
<version>1007000</version>
<kvmVersion>0</kvmVersion>
<microcodeVersion>43100244</microcodeVersion>
<package></package>
<arch>x86_64</arch>
<cpu type='kvm' name='Opteron_G5'/>
<cpu type='kvm' name='Opteron_G4'/>
<cpu type='kvm' name='Opteron_G3'/>
<cpu type='kvm' name='Opteron_G2'/>
<cpu type='kvm' name='Opteron_G1'/>
<cpu type='kvm' name='Haswell'/>
<cpu type='kvm' name='SandyBridge'/>
<cpu type='kvm' name='Westmere'/>
<cpu type='kvm' name='Nehalem'/>
<cpu type='kvm' name='Penryn'/>
<cpu type='kvm' name='Conroe'/>
<cpu type='kvm' name='n270'/>
<cpu type='kvm' name='athlon'/>
<cpu type='kvm' name='pentium3'/>
<cpu type='kvm' name='pentium2'/>
<cpu type='kvm' name='pentium'/>
<cpu type='kvm' name='486'/>
<cpu type='kvm' name='coreduo'/>
<cpu type='kvm' name='kvm32'/>
<cpu type='kvm' name='qemu32'/>
<cpu type='kvm' name='kvm64'/>
<cpu type='kvm' name='core2duo'/>
<cpu type='kvm' name='phenom'/>
<cpu type='kvm' name='qemu64'/>
<machine type='kvm' name='pc-i440fx-1.7' alias='pc' maxCpus='255' default='yes'/>
<machine type='kvm' name='pc-q35-1.4' maxCpus='255'/>
<machine type='kvm' name='pc-q35-1.5' maxCpus='255'/>
<machine type='kvm' name='pc-q35-1.6' maxCpus='255'/>
<machine type='kvm' name='pc-q35-1.7' alias='q35' maxCpus='255'/>
<machine type='kvm' name='isapc' maxCpus='1'/>
<machine type='kvm' name='pc-0.10' maxCpus='255'/>
<machine type='kvm' name='pc-0.11' maxCpus='255'/>
<machine type='kvm' name='pc-0.12' maxCpus='255'/>
<machine type='kvm' name='pc-0.13' maxCpus='255'/>
<machine type='kvm' name='pc-0.14' maxCpus='255'/>
<machine type='kvm' name='pc-0.15' maxCpus='255'/>
<machine type='kvm' name='pc-1.0' maxCpus='255'/>
<machine type='kvm' name='pc-1.1' maxCpus='255'/>
<machine type='kvm' name='pc-1.2' maxCpus='255'/>
<machine type='kvm' name='pc-1.3' maxCpus='255'/>
<machine type='kvm' name='pc-i440fx-1.4' maxCpus='255'/>
<machine type='kvm' name='pc-i440fx-1.5' maxCpus='255'/>
<machine type='kvm' name='pc-i440fx-1.6' maxCpus='255'/>
<cpu type='tcg' name='Opteron_G5'/>
<cpu type='tcg' name='Opteron_G4'/>
<cpu type='tcg' name='Opteron_G3'/>
<cpu type='tcg' name='Opteron_G2'/>
<cpu type='tcg' name='Opteron_G1'/>
<cpu type='tcg' name='Haswell'/>
<cpu type='tcg' name='SandyBridge'/>
<cpu type='tcg' name='Westmere'/>
<cpu type='tcg' name='Nehalem'/>
<cpu type='tcg' name='Penryn'/>
<cpu type='tcg' name='Conroe'/>
<cpu type='tcg' name='n270'/>
<cpu type='tcg' name='athlon'/>
<cpu type='tcg' name='pentium3'/>
<cpu type='tcg' name='pentium2'/>
<cpu type='tcg' name='pentium'/>
<cpu type='tcg' name='486'/>
<cpu type='tcg' name='coreduo'/>
<cpu type='tcg' name='kvm32'/>
<cpu type='tcg' name='qemu32'/>
<cpu type='tcg' name='kvm64'/>
<cpu type='tcg' name='core2duo'/>
<cpu type='tcg' name='phenom'/>
<cpu type='tcg' name='qemu64'/>
<machine type='tcg' name='pc-i440fx-1.7' alias='pc' maxCpus='255' default='yes'/>
<machine type='tcg' name='pc-q35-1.4' maxCpus='255'/>
<machine type='tcg' name='pc-q35-1.5' maxCpus='255'/>
<machine type='tcg' name='pc-q35-1.6' maxCpus='255'/>
<machine type='tcg' name='pc-q35-1.7' alias='q35' maxCpus='255'/>
<machine type='tcg' name='isapc' maxCpus='1'/>
<machine type='tcg' name='pc-0.10' maxCpus='255'/>
<machine type='tcg' name='pc-0.11' maxCpus='255'/>
<machine type='tcg' name='pc-0.12' maxCpus='255'/>
<machine type='tcg' name='pc-0.13' maxCpus='255'/>
<machine type='tcg' name='pc-0.14' maxCpus='255'/>
<machine type='tcg' name='pc-0.15' maxCpus='255'/>
<machine type='tcg' name='pc-1.0' maxCpus='255'/>
<machine type='tcg' name='pc-1.1' maxCpus='255'/>
<machine type='tcg' name='pc-1.2' maxCpus='255'/>
<machine type='tcg' name='pc-1.3' maxCpus='255'/>
<machine type='tcg' name='pc-i440fx-1.4' maxCpus='255'/>
<machine type='tcg' name='pc-i440fx-1.5' maxCpus='255'/>
<machine type='tcg' name='pc-i440fx-1.6' maxCpus='255'/>
</qemuCaps>