Nova and QEMU[1] supports PCI devices with a PCI address that has 16 bit
domain. However there are hypervisors that reports PCI addresses with
32 bit domain. While today we cannot assign these to guests this should
not prevent the nova-compute service to start.
This patch changes the PCI manager to ignore such PCI devices.
Please note that this patch does not change fact that nova does not
allow specifying PCI addresses with 32bit domain in the
[pci]/passthrough_whitelist configuration. Such configuration is still
rejected at nova-compute service startup.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /791768 /opendev. org/openstack/ nova/commit/ 90ffc553d7f4152 a6a4a8708787150 d3c3c40b03
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/victoria
commit 90ffc553d7f4152 a6a4a8708787150 d3c3c40b03
Author: Balazs Gibizer <email address hidden>
Date: Thu Oct 8 14:27:44 2020 +0200
Ignore PCI devices with 32bit domain
Nova and QEMU[1] supports PCI devices with a PCI address that has 16 bit
domain. However there are hypervisors that reports PCI addresses with
32 bit domain. While today we cannot assign these to guests this should
not prevent the nova-compute service to start.
This patch changes the PCI manager to ignore such PCI devices.
Please note that this patch does not change fact that nova does not /passthrough_ whitelist configuration. Such configuration is still
allow specifying PCI addresses with 32bit domain in the
[pci]
rejected at nova-compute service startup.
Closes-Bug: #1897528
[1] https:/ /github. com/qemu/ qemu/blob/ f2a1cf9180f63e8 8bb38ff21c169da 97c3f2bad5/ hw/core/ qdev-properties .c#L993
Change-Id: I59a0746b864610 b6a314078cf5661 d3d2b84b1d4 78b79ae259c9915 216f5d59b0)
(cherry picked from commit 8c9d6fc8f073cde