]> xenbits.xensource.com Git - libvirt.git/commit
virpcimock: Mock the SRIOV Virtual functions
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Thu, 29 Aug 2019 19:18:59 +0000 (16:18 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Sep 2019 14:44:24 +0000 (16:44 +0200)
commit5a9dc4a50c20a0d3cb51a5434076d51c50ea8bdd
treee72aeb38a90a281bb542b019a7d0ab30e91967a5
parent16c9890383fd3f2bc43720a169971aeedb643aa1
virpcimock: Mock the SRIOV Virtual functions

The softlink to physfn is the way to know if the device is
VF or not. So, the patch softlinks 'physfn' to the parent function.
The multifunction PCI devices dont have 'physfn' softlinks.

The patch adds few Virtual functions to the mock environment and
changes the existing VFIO test xmls using the VFs to use the newly
added VFs for their use case.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
13 files changed:
tests/qemuxml2argvdata/hostdev-vfio-multidomain.args
tests/qemuxml2argvdata/hostdev-vfio-multidomain.xml
tests/qemuxml2argvdata/hostdev-vfio.args
tests/qemuxml2argvdata/hostdev-vfio.xml
tests/qemuxml2argvdata/net-hostdev-fail.xml
tests/qemuxml2argvdata/net-hostdev-vfio.args
tests/qemuxml2argvdata/net-hostdev-vfio.xml
tests/qemuxml2xmloutdata/hostdev-vfio.xml
tests/qemuxml2xmloutdata/net-hostdev-vfio.xml
tests/virpcimock.c
tests/virpcitestdata/0000-06-12.0.config [new file with mode: 0644]
tests/virpcitestdata/0000-06-12.1.config [new file with mode: 0644]
tests/virpcitestdata/0000-06-12.2.config [new file with mode: 0644]