Comment 11 for bug 1222990

Revision history for this message
lvmxh (shaohef) wrote :

For issue one: you can see yongli's patch:
$ git show 5d383629571cf10fa94a879ba93e6d2ad9f4262a

it say:
The configuration option 'pci_passthrough_whitelist' can be defined multi times, each for one type of device.

As I difined above:
$ cat /etc/nova/nova.conf |grep pci_passthrough_whitelist
pci_passthrough_whitelist= {"product_id":"10fb", "vendor_id":"8086", "deviceids":"0000:01:00.0, 0000:01:00.1"}
pci_passthrough_whitelist= {"product_id":"8c20", "vendor_id":"8086", "deviceids":"0000:00:1b.0"}

but it does not support mutile items in one configuration option 'pci_passthrough_whitelist'.
pci_passthrough_whitelist=[{"product_id":"10fb", "vendor_id":"8086", "deviceids":"0000:01:00.0, 0000:01:00.1"}, {"product_id":"8c20", "vendor_id":"8086", "deviceids":"0000:00:1b.0"}]

I think you can define multi times. This is more readable than define all devices in one configuration option 'pci_passthrough_whitelist'.

Maybe extra tool will be needed to list pci device and to let users choose his pci device, and then configure the 'pci_passthrough_whitelist' option to cat /etc/nova/nova.conf automatically