mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: pci: check whether a PCI device is host bridge or not by class
According PCI Code and ID Assignment Specification Revision 1.11, a PCI device whose Base Class is 06h and Sub-Class is 00h is a Host bridge. Tracked-On: #4550 Signed-off-by: Li Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
|
||||
#include <vm_config.h>
|
||||
|
||||
#define SOS_EMULATED_PCI_DEV_NUM 1U
|
||||
|
||||
extern struct acrn_vm_pci_dev_config sos_pci_devs[CONFIG_MAX_PCI_DEV_NUM];
|
||||
|
||||
struct pci_pdev;
|
||||
|
@@ -36,7 +36,7 @@
|
||||
#define CONFIG_SOS_VM .load_order = SOS_VM, \
|
||||
.uuid = SOS_VM_UUID, \
|
||||
.severity = SEVERITY_SOS, \
|
||||
.pci_dev_num = SOS_EMULATED_PCI_DEV_NUM, \
|
||||
.pci_dev_num = 0U, \
|
||||
.pci_devs = sos_pci_devs
|
||||
|
||||
#define CONFIG_SAFETY_VM(idx) .load_order = PRE_LAUNCHED_VM, \
|
||||
|
Reference in New Issue
Block a user