nova/nova/pci
Balazs Gibizer 3af2ecc13f Allow claiming PCI PF if child VF is unavailable
As If9ab424cc7375a1f0d41b03f01c4a823216b3eb8 stated there is a way for
the pci_device table to become inconsistent. Parent PF can be in
'available' state while children VFs are still in 'unavailable' state.
In this situation the PF is schedulable but the PCI claim will fail
when try to mark the dependent VFs unavailable.

This patch changes the PCI claim logic to allow claiming the parent PF
in the inconsistent situation as we assume that it is safe to do so.
This claim also fixed the inconsistency so that when the parent PF is
freed the children VFs become available again.

Closes-Bug: #1969496
Change-Id: I575ce06bcc913add7db0849f85728371da2032fc
2022-05-04 10:57:18 +02:00
..
__init__.py PCI utils 2013-08-23 14:21:12 +08:00
devspec.py Introduce remote_managed tag for PCI devs 2022-02-09 01:23:24 +03:00
manager.py Remove unavailable but not reported PCI devices at startup 2022-04-28 16:01:38 +02:00
request.py Introduce remote_managed tag for PCI devs 2022-02-09 01:23:24 +03:00
stats.py Allow claiming PCI PF if child VF is unavailable 2022-05-04 10:57:18 +02:00
utils.py Introduce remote_managed tag for PCI devs 2022-02-09 01:23:24 +03:00
whitelist.py Introduce remote_managed tag for PCI devs 2022-02-09 01:23:24 +03:00