nova/nova/tests/unit/pci
Vladik Romanovsky 0fe0b4f63e pci: changing the claiming and allocation logic for PF/VF assignment
Claiming and allocation logic of the pci devices will be changed to
reflect the relationship between VFs and PFs.

PFs cannot be claimed or assigned if one of it's dependent VFs is
not available. As well as, all of the dependent VFs should become
UNAVAILABLE when the PF is successfully claimed/assigned.

In the same way, VF cannot be claimed or assigned when it's related
PF is assigned. In case of a successful claim/assignment of a VF,
the PF should become UNAVAILABLE.

In general, all virtual function object should disappear from PCI
and be removed from the stats, when PF is assigned. The above logic
will serve as a precaution step.

Partially implements blueprint sriov-physical-function-passthrough

Change-Id: Iae62126a8471f3b8c7a35db39d960e3bed5a1390
2016-01-19 15:00:50 -05: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 pci: store context when creating pci devices 2016-01-19 13:45:04 -05:00
test_manager.py pci: changing the claiming and allocation logic for PF/VF assignment 2016-01-19 15:00:50 -05:00
test_request.py pci: adding support to specify a device_type in pci requests 2016-01-13 13:26:30 -05:00
test_stats.py pci: store context when creating pci devices 2016-01-19 13:45:04 -05: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