[libvirt] [PATCH v2 7/7] tests: Add a baseline test for multifunction pci device use case
Michal Privoznik
mprivozn at redhat.com
Fri Aug 16 12:43:56 UTC 2019
On 7/25/19 8:09 PM, Daniel Henrique Barboza wrote:
> From: Shivaprasad G Bhat <sbhat at linux.vnet.ibm.com>
>
> 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
>
> The next few commits improve on automatically detecting the multifunction
> cards and auto-assinging the addresses appropriately.
>
> Signed-off-by: Shivaprasad G Bhat <sbhat at linux.vnet.ibm.com>
> Signed-off-by: Daniel Henrique Barboza <danielhb413 at gmail.com>
> ---
> .../hostdev-pci-multifunction.args | 35 ++++++++
> .../hostdev-pci-multifunction.xml | 59 ++++++++++++++
> tests/qemuxml2argvtest.c | 3 +
> .../hostdev-pci-multifunction.xml | 79 +++++++++++++++++++
> tests/qemuxml2xmltest.c | 1 +
> 5 files changed, 177 insertions(+)
> create mode 100644 tests/qemuxml2argvdata/hostdev-pci-multifunction.args
> create mode 100644 tests/qemuxml2argvdata/hostdev-pci-multifunction.xml
> create mode 100644 tests/qemuxml2xmloutdata/hostdev-pci-multifunction.xml
Reviewed-by: Michal Privoznik <mprivozn at redhat.com>
Michal
More information about the libvir-list
mailing list