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
For issue one: you can see yongli's patch: fa94a879ba93e6d 2ad9f4262a
$ git show 5d383629571cf10
it say: h_whitelist' can be defined multi times, each for one type of device.
The configuration option 'pci_passthroug
As I difined above: _whitelist _whitelist= {"product_ id":"10fb" , "vendor_id":"8086", "deviceids" :"0000: 01:00.0, 0000:01:00.1"} _whitelist= {"product_ id":"8c20" , "vendor_id":"8086", "deviceids" :"0000: 00:1b.0" }
$ cat /etc/nova/nova.conf |grep pci_passthrough
pci_passthrough
pci_passthrough
but it does not support mutile items in one configuration option 'pci_passthroug h_whitelist' . _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" }]
pci_passthrough
I think you can define multi times. This is more readable than define all devices in one configuration option 'pci_passthroug h_whitelist' .
Maybe extra tool will be needed to list pci device and to let users choose his pci device, and then configure the 'pci_passthroug h_whitelist' option to cat /etc/nova/nova.conf automatically