]> xenbits.xensource.com Git - libvirt.git/commit
tests: Add test case for QEMU pci-hostdev hotplug
authorShivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Thu, 29 Aug 2019 19:19:00 +0000 (16:19 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Sep 2019 14:44:24 +0000 (16:44 +0200)
commit944a35d7f058ed4eedf3d3295f587320a95978f5
treeb8f040cd514537274b7a6c5da290eea36e1f9aa8
parent5a9dc4a50c20a0d3cb51a5434076d51c50ea8bdd
tests: Add test case for QEMU pci-hostdev hotplug

This patch adds hostdev test cases in qemuhotplugtest.c.

Note: the small tweak inside virpcimock.c was needed because
the new tests added a code path in which virHostHasIOMMU()
(virutil.c) started being called, and the mocked '/sys/kernel/'
prefix that is mocked in virpcimock.c wasn't being considered
in the opendir() mock. An alternative to avoid these situations
in virpcimock.c is implemented in the next patch.

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>
src/util/virprocess.h
tests/Makefile.am
tests/qemuhotplugtest.c
tests/qemuhotplugtestdevices/qemuhotplug-hostdev-pci.xml [new file with mode: 0644]
tests/qemuhotplugtestdomains/qemuhotplug-base-live+hostdev-pci.xml [new file with mode: 0644]
tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live+hostdev-pci.xml [new file with mode: 0644]
tests/qemuhotplugtestdomains/qemuhotplug-pseries-base-live.xml [new file with mode: 0644]
tests/virpcimock.c
tests/virprocessmock.c [new file with mode: 0644]