Comment 0 for bug 1333074

Revision history for this message
Young (afe-young) wrote : pci_passthrough_whitelist in nova.conf can only filter by product_id and vender_id

I'mw working on using SR-IOV in Openstack.
I have one NIC with two slots. Only one slot is plugged in. So the NIC has two Physical Function. I enabled sr-iov on this machine. So I got 32 virtual functions(16 virtual function for each physical function).
Now I want to make openstack only uses the 16 virtual functions for the physical functions which is plugged in. However, I found that only product_id and vender_id is enabled when I looked up the code in pci/pci_whitelist.py(Line 40, _WHITELIST_SCHEMA).
I hope I could filter by physical functions like this pci_passthrough_whitelist=[{ "vendor_id":"8086","product_id":"1515", "phys_function.0.3": "0x0"}].

There is a same problem for the pci_alias. I can't use extra_info to define the pci_alias filter(The physical function info is in extra_info)