'Apply PCI requests to the PCI stats.
This is used in multiple instance creation, when the scheduler has to
maintain how the resources are consumed by the instances.
If numa_cells is provided then only devices contained in
those nodes are considered.'

def apply_requests(self, requests, numa_cells=None):

    if (not all([self._apply_request(self.pools, r, numa_cells) for r in requests])):
        raise exception.PciDeviceRequestFailed(requests=requests)
