nova/nova/pci
Adrian Chiris 2a3179affb Separate methods to free claimed and allocated devs
The existing PCI manager exposes a single method to free PCI resources
free_instance(), which frees both claimed and allocated PCI resources
for an instance.

This change proposes to extend the PCI manager API with two methods:
  1. free_instance_claims() : free PCI resources claims for instance.
  2. free_instance_allocations() : free PCI resources allocations for
     instance.

This change refactors free_instance() to use (1) and (2) from above.

This change is required to enable SR-IOV live migration as it is
required to free instance PCI allocations on the source node
in case of a successful migration and free instance PCI claims
on the destination node in case of an unsuccessful migration.

Change-Id: Id961f0fc219f32a2cf0282859f228e87cb36ffeb
Partial-Implements: blueprint libvirt-neutron-sriov-livemigration
2019-03-07 10:21:41 +02:00
..
__init__.py PCI utils 2013-08-23 14:21:12 +08:00
devspec.py [Trivial] docstrings, typos, minor refactoring 2017-08-28 08:33:58 -05:00
manager.py Separate methods to free claimed and allocated devs 2019-03-07 10:21:41 +02:00
request.py Record requester in the InstancePCIRequest 2019-02-28 12:47:47 -05:00
stats.py Ensure that bandwidth and VF are from the same PF 2019-03-05 17:48:29 +01:00
utils.py pci: don't consider case when match tags specs 2018-05-30 11:13:03 +02:00
whitelist.py remove unnecessary conf imports 2018-03-09 14:30:10 -05:00