]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Add a baseline test for multifunction pci device use case
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Thu, 29 Aug 2019 19:19:02 +0000 (16:19 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Sep 2019 14:44:24 +0000 (16:44 +0200)
commit4ef4ba49742292f7fef908bf9fa31f567c093e1b
treeeeafbd7c5a258a2c2eea69ae10bb131acc2d8479
parent2d9b8acf585cd9a634bb5b57eb4cf1585aa952f5
tests: Add a baseline test for multifunction pci device use case

There are already good number of test cases with hostdevices,
few have multifunction devices but none having more than one
than one multifunction cards.

This patch adds a case where there are two multifunction cards
and two Virtual functions part of the same XML.

0001:01:00.X & 0005:09:00.X - are Multifunction PCI cards.
0000:06:12.[5|6] - are SRIOV Virtual functions

Future commits will improve on automatically detecting the
multifunction cards and auto-assinging the addresses
appropriately.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/qemuxml2argvdata/hostdev-pci-multifunction.args [new file with mode: 0644]
tests/qemuxml2argvdata/hostdev-pci-multifunction.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/hostdev-pci-multifunction.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c