mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv: vm_config: build pci device configure for SOS
Align SOS pci device configure with pre-launched VM and filter pre-launched VM's PCI PT device from SOS pci device configure. Tracked-On: #3475 Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
adbaaaf6cb
commit
eb21f205e4
@@ -34,6 +34,7 @@
|
||||
#include <pci.h>
|
||||
#include <uart16550.h>
|
||||
#include <logmsg.h>
|
||||
#include <pci_dev.h>
|
||||
|
||||
static spinlock_t pci_device_lock;
|
||||
uint32_t num_pci_pdev;
|
||||
@@ -414,6 +415,8 @@ static void fill_pdev(uint16_t pbdf, struct pci_pdev *pdev)
|
||||
if ((pci_pdev_read_cfg(pdev->bdf, PCIR_STATUS, 2U) & PCIM_STATUS_CAPPRESENT) != 0U) {
|
||||
pci_read_cap(pdev, hdr_type);
|
||||
}
|
||||
|
||||
fill_pci_dev_config(pdev);
|
||||
}
|
||||
|
||||
static void init_pdev(uint16_t pbdf)
|
||||
|
Reference in New Issue
Block a user