mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-11 23:48:07 +00:00
While PCIe specification defines only type 0 and type 1 configuration space headers, there can be cases where a PCI function has a different header type. As an example, that device itself is under development or is a special emulated device. This patch makes the board inspector gracefully skips those PCIe functions and continue scanning the rest in such cases, as the only impact of the anomaly is the prevention of ACRN from passing through that PCIe function to any VM. It is an overkill to crash the board inspector. Tracked-On: #6689 Signed-off-by: Junjie Mao <junjie.mao@intel.com>