mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
9363c1cb69
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> |
||
---|---|---|
.. | ||
test-channel-pty.cfg | ||
test-channel-pty.xml | ||
test-channel-unix.cfg | ||
test-channel-unix.xml | ||
test-disk-positional-parms-full.cfg | ||
test-disk-positional-parms-full.xml | ||
test-disk-positional-parms-partial.cfg | ||
test-disk-positional-parms-partial.xml | ||
test-disk-qed.cfg | ||
test-disk-qed.xml | ||
test-fullvirt-acpi-slic.cfg | ||
test-fullvirt-acpi-slic.xml | ||
test-fullvirt-cpuid.cfg | ||
test-fullvirt-cpuid.xml | ||
test-fullvirt-direct-kernel-boot-bogus-extra.cfg | ||
test-fullvirt-direct-kernel-boot-bogus-extra.xml | ||
test-fullvirt-direct-kernel-boot-extra.cfg | ||
test-fullvirt-direct-kernel-boot-extra.xml | ||
test-fullvirt-direct-kernel-boot.cfg | ||
test-fullvirt-direct-kernel-boot.xml | ||
test-fullvirt-hpet-timer.cfg | ||
test-fullvirt-hpet-timer.xml | ||
test-fullvirt-hypervisor-features.cfg | ||
test-fullvirt-hypervisor-features.xml | ||
test-fullvirt-multi-timer.cfg | ||
test-fullvirt-multi-timer.xml | ||
test-fullvirt-multiserial.cfg | ||
test-fullvirt-multiserial.xml | ||
test-fullvirt-multiusb.cfg | ||
test-fullvirt-multiusb.xml | ||
test-fullvirt-nestedhvm-disabled.cfg | ||
test-fullvirt-nestedhvm-disabled.xml | ||
test-fullvirt-nestedhvm.cfg | ||
test-fullvirt-nestedhvm.xml | ||
test-fullvirt-nohap.cfg | ||
test-fullvirt-nohap.xml | ||
test-fullvirt-ovmf.cfg | ||
test-fullvirt-ovmf.xml | ||
test-fullvirt-ovswitch-tagged.cfg | ||
test-fullvirt-ovswitch-tagged.xml | ||
test-fullvirt-ovswitch-trunked.cfg | ||
test-fullvirt-ovswitch-trunked.xml | ||
test-fullvirt-pci.cfg | ||
test-fullvirt-pci.xml | ||
test-fullvirt-tsc-timer.cfg | ||
test-fullvirt-tsc-timer.xml | ||
test-fullvirt-type.cfg | ||
test-fullvirt-type.xml | ||
test-fullvirt-vnuma-autocomplete.cfg | ||
test-fullvirt-vnuma-autocomplete.xml | ||
test-fullvirt-vnuma-nodistances.cfg | ||
test-fullvirt-vnuma-nodistances.xml | ||
test-fullvirt-vnuma-partialdist.cfg | ||
test-fullvirt-vnuma-partialdist.xml | ||
test-fullvirt-vnuma.cfg | ||
test-fullvirt-vnuma.xml | ||
test-max-eventchannels.cfg | ||
test-max-eventchannels.xml | ||
test-max-gntframes.cfg | ||
test-max-gntframes.xml | ||
test-net-fakemodel.cfg | ||
test-net-fakemodel.xml | ||
test-new-disk.cfg | ||
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 | ||
test-paravirt-e820_host.xml | ||
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 | ||
test-qemu-passthrough.xml | ||
test-rbd-multihost-noauth.cfg | ||
test-rbd-multihost-noauth.xml | ||
test-spice-features.cfg | ||
test-spice-features.xml | ||
test-spice.cfg | ||
test-spice.xml | ||
test-usb.cfg | ||
test-usb.xml | ||
test-usbctrl.cfg | ||
test-usbctrl.xml | ||
test-vif-multi-ip.cfg | ||
test-vif-multi-ip.xml | ||
test-vif-rate.cfg | ||
test-vif-rate.xml | ||
test-vif-typename.cfg | ||
test-vif-typename.xml |