PCI passthrough SRIOV support
Revision as of 09:06, 21 November 2013 by Yongli.he@intel.com (talk | contribs) (→= DB for pci configration)
Contents
Requements from SRIOV
- group device
for SRIOV, all VFs belong to same PF share same physical network reachability. so if you want, say, deploy a vlan network, you need choose the right PF's VF, otherwise network does not work for you.
- tracking device alloced to the NIC
networking or other special deive is not as simple as pass though to the VM, there is need more configration. to acheive this, SRIOV must know the device infomation allocation to the specific NIC.
group the devices
spec: a filter defined by (k,v) paris extra_spec: the filter defined by (k, v) and k not in the pci object fileds.
pci utils/objects support grouping
* pci utils k,v match support the list values * objects provide a class level extrac interface to extract base spec and extra spec
white list import address set
* white list support 'address':[bdf1, ....] * white list support any other (k,v) pair to group or store special infomation * object extrac specs and extra_info, specs use as whitelist spec, extra info will be updated to device's extra_info fields
enable alias request extra property
* alis can specify extra (k,v) pairs * pci manager use extrac method extrac the specs and extra_specs, match them agains the pci object object.extra_info.
pci stats grouping device on demand
* pci_grouping_key configration option define a set of key name which will used to group the device to stats * default value is [vendor_id, product_id], this current implemtation * limited support to 3 keys grouping for algorithm simplicity.
tracking device allocated to alias
use request append infomation to alloced device then find if by (k,v)
API for whitelist
DB for pci configration
talbe: pci_configration{ object: host: k: v: }
alias and on-demand group key is global.
PCI releated Objects
Objects: white list/ alias/ group keys(on demand grop) objects property: sets of k,v
API interface
GET/object-name: get predefined keys: like vendor/produect/address GET/objet-name/key: get key value in the DB PUT/object-name/ k=v: set pre define or extra k,v to objects