1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00
libvirt/tests/domainsnapshotxml2xmlout
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
..
all_parameters.xml snapshot: new XML for external system checkpoint 2012-11-02 09:56:23 -06:00
disk_driver_name_null.xml snapshot: Add support for specifying snapshot disk backing type 2014-01-29 12:56:35 +01:00
disk_snapshot_redefine.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
disk_snapshot.xml snapshot: Add support for specifying snapshot disk backing type 2014-01-29 12:56:35 +01:00
empty.xml domainsnapshotxml2xmltest: Add existing files as new tests 2013-12-05 09:41:29 +01:00
external_vm_redefine.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
external_vm.xml domainsnapshotxml2xmltest: Add existing files as new tests 2013-12-05 09:41:29 +01:00
full_domain.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
metadata.xml device: cleanup input device code 2016-01-26 17:53:33 +01:00
name_and_description.xml domainsnapshotxml2xmltest: Add existing files as new tests 2013-12-05 09:41:29 +01:00
noparent_nodescription_noactive.xml snapshot: new XML for external system checkpoint 2012-11-02 09:56:23 -06:00
noparent_nodescription.xml snapshot: new XML for external system checkpoint 2012-11-02 09:56:23 -06:00
noparent.xml domainsnapshotxml2xmltest: Add existing files as new tests 2013-12-05 09:41:29 +01:00