nova/nova/tests/unit/pci
Moshe Levi 2ba4644f91 libvirt: report pci Type-PF type even when VFs are disabled
libvirt < 1.3 reports virt_functions capability only when pf has
VFs enabled. This workaround patch updates the is_physical_function
function to read the sriov_totalvfs if exists and check it is
greater than 0. The sriov_totalvfs is the number for the
maximum possible VF for this PF. _get_pcidev_info in libvirt driver
is updated to get the correct pci device type using this function.

Closes-Bug: #1499204
Change-Id: I8990c36fb1d6c66093a465930ff3f0948dd64986
2015-12-09 17:01:19 +02:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_devspec.py Support both list and dict for pci_passthrough_whitelist 2015-01-05 15:31:29 +00:00
test_manager.py pci: Remove nova.pci.device module 2015-08-19 12:22:00 -04:00
test_request.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_stats.py pci: Remove get_pci_devices_filter() method 2015-08-11 17:19:22 -04:00
test_utils.py libvirt: report pci Type-PF type even when VFs are disabled 2015-12-09 17:01:19 +02:00
test_whitelist.py pci: Remove get_pci_devices_filter() method 2015-08-11 17:19:22 -04:00