hv: vpci: refine init_vdevs

Now almost the vPCI device information could be obtain from PCI device configure
in VM configure. init_vdevs could make things more easier.
And rename init_vdevs to vpci_init_vdevs, init_vdev to vpci_init_vdevs to avoid
MISRA-C violations.

Tracked-On: #3475
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Dongsheng Zhang <dongsheng.x.zhang@intel.com>
This commit is contained in:
Li, Fei1
2019-08-02 08:21:22 +08:00
committed by ACRN System Integration
parent eb21f205e4
commit 599a058403
4 changed files with 27 additions and 75 deletions

View File

@@ -37,8 +37,8 @@
#include <pci_dev.h>
static spinlock_t pci_device_lock;
uint32_t num_pci_pdev;
struct pci_pdev pci_pdev_array[CONFIG_MAX_PCI_DEV_NUM];
static uint32_t num_pci_pdev;
static struct pci_pdev pci_pdev_array[CONFIG_MAX_PCI_DEV_NUM];
static void init_pdev(uint16_t pbdf);