1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/tests/xlconfigdata
Laine Stump 9363c1cb69 xen: explicitly set hostdev driver.name at runtime, not in postparse
Xen only supports a single type of PCI hostdev assignment, so it is
superfluous to have <driver name='xen'/> peppered throughout the
config. It *is* necessary to have the driver type explicitly set in
the hostdev object before calling into the hypervisor-agnostic "hostdev
manager" though (otherwise the hostdev manager doesn't know whether it
should do Xen-specific setup, or VFIO-specific setup).

Historically, the Xen driver has checked for "default" driver name
(i.e. not set in the XML), and set it to "xen', during the XML
postparse, thus guaranteeing that it will be set by the time the
object is sent to the hostdev manager at runtime, but also setting it
so early that a simple round-trip of parse-format results in the XML
always containing an explicit <driver name='xen'/>, even if that
wasn't specified in the original XML.

The QEMU driver *doesn't* set driver.name during postparse though;
instead, it waits until domain startup time (or device attach time for
hotplug), and sets the driver.name then. The result is that a
parse-format round trip of the XML in the QEMU driver *doesn't* add in
the <driver name='vfio'/>.

This patch modifies the Xen driver to behave similarly to the QEMU
driver - the PostParse just checks for a driver.name that isn't
supported by the Xen driver, and any explicit setting to "xen" is
deferred until domain runtime rather than during the postparse, thus
Xen domain XML also doesn't get extraneous <driver name='xen'/>.

This delayed setting of driver.name of course results in slightly
different xml2xml parse-format results, so the unit test data is
modified accordingly.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
2024-01-07 23:59:00 -05:00
..
test-channel-pty.cfg
test-channel-pty.xml
test-channel-unix.cfg
test-channel-unix.xml
test-disk-positional-parms-full.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-disk-positional-parms-full.xml
test-disk-positional-parms-partial.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-disk-positional-parms-partial.xml
test-disk-qed.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-disk-qed.xml
test-fullvirt-acpi-slic.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-acpi-slic.xml
test-fullvirt-cpuid.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-cpuid.xml
test-fullvirt-direct-kernel-boot-bogus-extra.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-direct-kernel-boot-bogus-extra.xml
test-fullvirt-direct-kernel-boot-extra.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-direct-kernel-boot-extra.xml
test-fullvirt-direct-kernel-boot.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-direct-kernel-boot.xml
test-fullvirt-hpet-timer.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-hpet-timer.xml
test-fullvirt-hypervisor-features.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-hypervisor-features.xml tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
test-fullvirt-multi-timer.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-multi-timer.xml
test-fullvirt-multiserial.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-multiserial.xml
test-fullvirt-multiusb.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-multiusb.xml
test-fullvirt-nestedhvm-disabled.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-nestedhvm-disabled.xml
test-fullvirt-nestedhvm.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-nestedhvm.xml
test-fullvirt-nohap.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-nohap.xml
test-fullvirt-ovmf.cfg libxl: Add support for custom firmware path in config converter 2023-03-10 11:02:02 -07:00
test-fullvirt-ovmf.xml libxl: Add support for custom firmware path in config converter 2023-03-10 11:02:02 -07:00
test-fullvirt-ovswitch-tagged.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-ovswitch-tagged.xml
test-fullvirt-ovswitch-trunked.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-ovswitch-trunked.xml
test-fullvirt-pci.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-pci.xml xen: explicitly set hostdev driver.name at runtime, not in postparse 2024-01-07 23:59:00 -05:00
test-fullvirt-tsc-timer.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-tsc-timer.xml
test-fullvirt-type.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-type.xml
test-fullvirt-vnuma-autocomplete.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-vnuma-autocomplete.xml
test-fullvirt-vnuma-nodistances.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-vnuma-nodistances.xml
test-fullvirt-vnuma-partialdist.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-vnuma-partialdist.xml
test-fullvirt-vnuma.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-fullvirt-vnuma.xml
test-max-eventchannels.cfg
test-max-eventchannels.xml
test-max-gntframes.cfg
test-max-gntframes.xml
test-net-fakemodel.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-net-fakemodel.xml
test-new-disk.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-new-disk.xml
test-paravirt-cmdline-bogus-extra-root.cfg
test-paravirt-cmdline-bogus-extra-root.xml
test-paravirt-cmdline-extra-root.cfg
test-paravirt-cmdline-extra-root.xml
test-paravirt-cmdline.cfg
test-paravirt-cmdline.xml
test-paravirt-e820_host.cfg tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
test-paravirt-e820_host.xml tests: check conversion of passthrough hypervisor feature 2020-04-21 09:22:14 -06:00
test-paravirt-maxvcpus.cfg
test-paravirt-maxvcpus.xml
test-paravirt-type.cfg
test-paravirt-type.xml
test-pvh-type.cfg
test-pvh-type.xml
test-qemu-passthrough.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-qemu-passthrough.xml Xen: Add support for qemu commandline passthrough to config converter 2020-08-25 10:13:58 -06:00
test-rbd-multihost-noauth.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-rbd-multihost-noauth.xml
test-spice-features.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-spice-features.xml
test-spice.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-spice.xml
test-usb.cfg
test-usb.xml
test-usbctrl.cfg
test-usbctrl.xml
test-vif-multi-ip.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-vif-multi-ip.xml
test-vif-rate.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-vif-rate.xml
test-vif-typename.cfg xen: recognize device_model_override 2020-12-07 15:38:31 -07:00
test-vif-typename.xml