You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [pci]alias configuration option now accepts two new optional fields:
* resource_class: that can be used to request PCI device by placement
RC name.
* traits: a comma separated list of placement trait names that can be
used to filter placement PCI resource provider by traits.
These fields has the matching counterpart in [pci]device_spec
implemented already.
These fields are matched by the Placement GET allocation_candidates
query therefore these fields are ignored when PCI device pools are
matched against IntancePCIRequest by nova.
Note that InstancePCIRequest object spec field is defined as a list of
dicts. But in reality nova creates the request always with a single
dict. So we restricted the placement logic to handle a single spec.
blueprint: pci-device-tracking-in-placement
Change-Id: I5c8f05c3c5d7597175e60b29e4ab2f22e6496ecd
Copy file name to clipboardExpand all lines: doc/source/admin/pci-passthrough.rst
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -442,6 +442,21 @@ removed and VFs from the same PF is configured (or vice versa) then
442
442
nova-compute will refuse to start as it would create a situation where both
443
443
the PF and its VFs are made available for consumption.
444
444
445
+
If a flavor requests multiple ``type-VF`` devices via
446
+
:nova:extra-spec:`pci_passthrough:alias` then it is important to consider the
447
+
value of :nova:extra-spec:`group_policy` as well. The value ``none``
448
+
allows nova to select VFs from the same parent PF to fulfill the request. The
449
+
value ``isolate`` restricts nova to select each VF from a different parent PF
450
+
to fulfill the request. If :nova:extra-spec:`group_policy` is not provided in
451
+
such flavor then it will defaulted to ``none``.
452
+
453
+
Symmetrically with the ``resource_class`` and ``traits`` fields of
454
+
:oslo.config:option:`pci.device_spec` the :oslo.config:option:`pci.alias`
455
+
configuration option supports requesting devices by Placement resource class
456
+
name via the ``resource_class`` field and also support requesting traits to
457
+
be present on the selected devices via the ``traits`` field in the alias. If
458
+
the ``resource_class`` field is not specified in the alias then it is defaulted
459
+
by nova to ``CUSTOM_PCI_<vendor_id>_<product_id>``.
445
460
446
461
For deeper technical details please read the `nova specification. <https://specs.openstack.org/openstack/nova-specs/specs/zed/approved/pci-device-tracking-in-placement.html>`_
0 commit comments