mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
e7a65484ba
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>
257 lines
9.4 KiB
XML
257 lines
9.4 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='tpm-passthrough'/>
|
|
<flag name='tpm-tis'/>
|
|
<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='active-commit'/>
|
|
<flag name='change-backing-file'/>
|
|
<flag name='memory-backend-ram'/>
|
|
<flag name='numa'/>
|
|
<flag name='memory-backend-file'/>
|
|
<flag name='usb-audio'/>
|
|
<flag name='rtc-reset-reinjection'/>
|
|
<flag name='splash-timeout'/>
|
|
<flag name='iothread'/>
|
|
<flag name='migrate-rdma'/>
|
|
<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='pc-dimm'/>
|
|
<flag name='machine-vmport-opt'/>
|
|
<flag name='pci-serial'/>
|
|
<flag name='vhost-user-multiqueue'/>
|
|
<flag name='migration-event'/>
|
|
<flag name='ioh3420'/>
|
|
<flag name='x3130-upstream'/>
|
|
<flag name='xio3130-downstream'/>
|
|
<flag name='rtl8139'/>
|
|
<flag name='e1000'/>
|
|
<flag name='virtio-net'/>
|
|
<flag name='incoming-defer'/>
|
|
<flag name='virtio-gpu'/>
|
|
<flag name='virtio-keyboard'/>
|
|
<flag name='virtio-mouse'/>
|
|
<flag name='virtio-tablet'/>
|
|
<flag name='virtio-input-host'/>
|
|
<flag name='ich9-disable-s3'/>
|
|
<flag name='ich9-disable-s4'/>
|
|
<flag name='vserport-change-event'/>
|
|
<flag name='virtio-balloon-pci.deflate-on-oom'/>
|
|
<flag name='qxl.vram64_size_mb'/>
|
|
<flag name='debug-threads'/>
|
|
<flag name='pxb'/>
|
|
<flag name='nec-usb-xhci-ports'/>
|
|
<flag name='virtio-scsi-pci.iothread'/>
|
|
<flag name='name-guest'/>
|
|
<flag name='qxl.max_outputs'/>
|
|
<flag name='spice-unix'/>
|
|
<flag name='drive-detect-zeroes'/>
|
|
<flag name='smm'/>
|
|
<flag name='virtio-pci-disable-legacy'/>
|
|
<flag name='machine-iommu'/>
|
|
<flag name='virtio-vga'/>
|
|
<flag name='vhost-scsi'/>
|
|
<flag name='drive-iotune-group'/>
|
|
<flag name='query-cpu-definitions'/>
|
|
<flag name='block-write-threshold'/>
|
|
<flag name='query-named-block-nodes'/>
|
|
<flag name='kernel-irqchip'/>
|
|
<flag name='vnc-multi-servers'/>
|
|
<flag name='chardev-reconnect'/>
|
|
<flag name='virtio-gpu.max_outputs'/>
|
|
<flag name='isa-serial'/>
|
|
<flag name='sdl-gl'/>
|
|
<flag name='hda-output'/>
|
|
<flag name='mch'/>
|
|
<flag name='i8042'/>
|
|
<version>2004000</version>
|
|
<kvmVersion>0</kvmVersion>
|
|
<microcodeVersion>43100242</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='Broadwell'/>
|
|
<cpu type='kvm' name='Broadwell-noTSX'/>
|
|
<cpu type='kvm' name='Haswell'/>
|
|
<cpu type='kvm' name='Haswell-noTSX'/>
|
|
<cpu type='kvm' name='IvyBridge'/>
|
|
<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-2.4' alias='pc' maxCpus='255' default='yes'/>
|
|
<machine type='kvm' name='pc-1.3' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-0.12' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-1.6' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-1.5' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-1.6' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-2.2' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-1.7' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-2.1' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-0.11' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-0.10' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-2.2' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-1.2' maxCpus='255'/>
|
|
<machine type='kvm' name='isapc' maxCpus='1'/>
|
|
<machine type='kvm' name='pc-i440fx-2.3' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-1.4' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-0.15' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-1.5' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-2.0' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-1.4' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-0.14' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-1.1' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-2.1' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-1.7' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-1.0' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-i440fx-2.0' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-2.4' alias='q35' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-q35-2.3' maxCpus='255'/>
|
|
<machine type='kvm' name='pc-0.13' 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='Broadwell'/>
|
|
<cpu type='tcg' name='Broadwell-noTSX'/>
|
|
<cpu type='tcg' name='Haswell'/>
|
|
<cpu type='tcg' name='Haswell-noTSX'/>
|
|
<cpu type='tcg' name='IvyBridge'/>
|
|
<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-2.4' alias='pc' maxCpus='255' default='yes'/>
|
|
<machine type='tcg' name='pc-1.3' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-0.12' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-1.6' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-1.5' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-1.6' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-2.2' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-1.7' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-2.1' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-0.11' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-0.10' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-2.2' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-1.2' maxCpus='255'/>
|
|
<machine type='tcg' name='isapc' maxCpus='1'/>
|
|
<machine type='tcg' name='pc-i440fx-2.3' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-1.4' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-0.15' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-1.5' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-2.0' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-1.4' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-0.14' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-1.1' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-2.1' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-1.7' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-1.0' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-i440fx-2.0' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-2.4' alias='q35' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-q35-2.3' maxCpus='255'/>
|
|
<machine type='tcg' name='pc-0.13' maxCpus='255'/>
|
|
</qemuCaps>
|