]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Drop needless PCI backend setting
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Apr 2023 07:51:46 +0000 (09:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 10:36:30 +0000 (12:36 +0200)
commit2020c7e821bb4826d0b4b46af42fd6e07f7e4c84
tree25de2ed5e38a5d7a501161e0e75576ef88d04526
parent3b87709c768480e085556e06bd8d08f62270d42d
qemuxml2argvtest: Drop needless PCI backend setting

The qemuxml2argvtest does a bit of 'fixups' to parsed
virDomainDef just before generating the cmd line. For instance,
it sets PCI backend for hostdevs (to VFIO). The reason for this
is that we want to make the test host independent and thus
letting the code chose backend at runtime might render different
results on different machines. But this is not necessary, as
virpcimock (that the test uses) already creates a fake, but
stable environment (where /dev/vfio/vfio and IOMMU groups exist),
thus qemuHostdevHostSupportsPassthroughVFIO() returns true,
regardless of the actual host support.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tests/qemuxml2argvtest.c