The nova.pci.whitelist Module

class Whitelist(whitelist_spec=None)

Bases: object

White list class to decide assignable pci devices.

Not all devices on compute node can be assigned to guest, the cloud administrator decides the devices that can be assigned based on vendor_id or product_id etc. If no white list specified, no device will be assignable.

device_assignable(dev)

Check if a device can be assigned to a guest.

Parameters:dev – A dictionary describing the device properties
get_devspec(pci_dev)
get_pci_device_devspec(pci_dev)

Previous topic

The nova.pci.utils Module

Next topic

The nova.policy Module

Project Source

This Page