mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-12 07:57:53 +00:00
According to section 6.1.1, ACPI Spec 6.4, _ADR of a device object under PCI/PCIe bus can use a special function number 0xFFFF to refer to all functions of a certain device. Such objects will have their own nodes in the board XML, and that causes build-time issues when a static allocator attempts to get all BDFs occupied under the root bus because 0xFFFF is not a valid function number (which ranges from 0 to 7). This patch skips ACPI devices with such addresses when listing existing BDFs. Tracked-On: #8293 Signed-off-by: Junjie Mao <junjie.mao@intel.com>