This patch introduces a new syntax for the address key:
"address":{ "domain": <regex_domain>, "bus": <regex_bus>,
"slot": <regex_slot>, "function": <regex_function> }
Example for the regular expression syntax:
This allows allocation of VFs whose functions are from 2 upwards:
pci_passthrough_whitelist= {"address":{"domain": ".*",
"bus": "02", "slot": "01",
"function": "[2-7]"},
"physical_network":"net1"}
This allows allocation of VFs whose slots are between 1 and 2:
pci_passthrough_whitelist= {"address":{"domain": ".*",
"bus": "02", "slot": "0[1-2]",
"function": ".*"},
"physical_network":"net1"}
Implements: blueprint pci-passthrough-whitelist-regex
Co-Authored-By: Edan David <edand@mellanox.com>
Change-Id: I9a110fb7907415a542d992d98ca7956148d2cbd9
11 KiB
11 KiB