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:
Li, Fei1
2019-08-02 08:17:02 +08:00
committed by ACRN System Integration
parent adbaaaf6cb
commit eb21f205e4
11 changed files with 112 additions and 9 deletions

View File

@@ -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)