libvirt/tests/qemuxml2xmloutdata
Pavel Hrdina 36785c7e77 device: cleanup input device code
The current code was a little bit odd.  At first we've removed all
possible implicit input devices from domain definition to add them later
back if there was any graphics device defined while parsing XML
description.  That's not all, while formating domain definition to XML
description we at first ignore any input devices with bus different to
USB and VIRTIO and few lines later we add implicit input devices to XML.

This seems to me as a lot of code for nothing.  This patch may look
to be more complicated than original approach, but this is a preferred
way to modify/add driver specific stuff only in those drivers and not
deal with them in common parsing/formating functions.

The update is to add those implicit input devices into config XML to
follow the real HW configuration visible by guest OS.

There was also inconsistence between our behavior and QEMU's in the way,
that in QEMU there is no way how to disable those implicit input devices
for x86 architecture and they are available always, even without graphics
device.  This applies also to XEN hypervisor.  VZ driver already does its
part by putting correct implicit devices into live XML.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2016-01-26 17:53:33 +01:00
..
qemuxml2xmlout-balloon-device-auto.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-balloon-device-period.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-bios-nvram-os-interleave.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-boot-menu-disable-with-timeout.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-channel-virtio-auto.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-channel-virtio-state-active.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-channel-virtio-state-inactive.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-console-compat2.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-console-compat-auto.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-console-virtio.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-controller-usb-order.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cpu-empty.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cpu-numa1.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cpu-numa2.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cpu-numa-disordered.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cpu-numa-no-memory-element.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cputune-iothreads.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-cputune-iothreadsched.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-default-kvm-host-arch.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-default-qemu-host-arch.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-backing-chains-active.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-backing-chains-inactive.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-drive-discard.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-mirror-old-inactive.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-mirror-old.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-mirror.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-scsi-device-auto.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-disk-source-pool.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-graphics-listen-network2.xml video: cleanup usage of vram attribute and update documentation 2014-11-24 22:05:55 +01:00
qemuxml2xmlout-graphics-spice-timeout.xml video: cleanup usage of vram attribute and update documentation 2014-11-24 22:05:55 +01:00
qemuxml2xmlout-hostdev-scsi-autogen-address.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-memtune-unlimited.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-memtune.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-metadata-duplicate.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-metadata.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-numad-auto-memory-vcpu-cpuset.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-numad-auto-memory-vcpu-no-cpuset-and-placement.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-numad-auto-vcpu-no-numatune.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-numatune-auto-prefer.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-numatune-memnode.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-panic.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pci-autoadd-addr.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pci-autoadd-idx.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pci-bridge-many-disks.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pcie-root.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pcihole64-gib.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pmu-feature.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-pseries-panic-missing.xml qemu: add support for hv_crash feature as a panic device 2015-11-25 14:46:20 +01:00
qemuxml2xmlout-pseries-panic-no-address.xml qemu: add support for hv_crash feature as a panic device 2015-11-25 14:46:20 +01:00
qemuxml2xmlout-q35-usb2-multi.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-q35-usb2-reorder.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-q35-usb2.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-q35.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-s390-defaultconsole.xml Prevent default creation of usb controller on s390 and s390x 2015-02-23 14:50:15 -05:00
qemuxml2xmlout-seclabel-dynamic-labelskip.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-seclabel-dynamic-none-relabel.xml tests: Add test cases for previous commit 2014-09-05 08:35:34 +02:00
qemuxml2xmlout-seclabel-dynamic-relabel.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-seclabel-none.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-serial-target-port-auto.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-tap-vhost-incorrect.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-usb-ich9-ehci-addr.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-usb-redir-filter-version.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
qemuxml2xmlout-usb-redir-filter.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00