summaryrefslogtreecommitdiff
path: root/nova/pci
diff options
context:
space:
mode:
authorSean Mooney <work@seanmooney.info>2021-02-24 20:25:50 +0000
committerStephen Finucane <stephenfin@redhat.com>2021-03-11 09:40:04 +0000
commit7313832d58347f2f36d7da094e04bf2315bd3e64 (patch)
tree6fc9944f37513a34ee250e56a8d3f1fe4342151a /nova/pci
parent658f2327bcb0d6b03e2d08a47debc7dfb5b18ae9 (diff)
downloadnova-7313832d58347f2f36d7da094e04bf2315bd3e64.tar.gz
objects: Add 'VDPA' to 'PciDeviceType'
Add a new PCI device type and update the parent objects to reflect this. The code for handling the '[pci] alias' config option is updated to prevent users specifying this in an alias. Blueprint: libvirt-vdpa-support Change-Id: I7c779ce7ee0648833758a75164e0bc0b54fe9a71
Diffstat (limited to 'nova/pci')
-rw-r--r--nova/pci/request.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/nova/pci/request.py b/nova/pci/request.py
index 1a451d8737..5a9c08232d 100644
--- a/nova/pci/request.py
+++ b/nova/pci/request.py
@@ -86,7 +86,13 @@ _ALIAS_SCHEMA = {
},
"device_type": {
"type": "string",
- "enum": list(obj_fields.PciDeviceType.ALL),
+ # NOTE(sean-k-mooney): vDPA devices cannot currently be used with
+ # alias-based PCI passthrough so we exclude it here
+ "enum": [
+ obj_fields.PciDeviceType.STANDARD,
+ obj_fields.PciDeviceType.SRIOV_PF,
+ obj_fields.PciDeviceType.SRIOV_VF,
+ ],
},
"numa_policy": {
"type": "string",