HV: store a pointer to pdev instead to save memory.

As we store the physical pci device info in a global pdev array, the vdev struct can
store a pointer to pdev instead.

Tracked-On: #2431
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
dongshen
2019-01-24 18:52:34 -08:00
committed by ACRN System Integration
parent 6ba07e64b9
commit f4adb109de
9 changed files with 46 additions and 69 deletions

View File

@@ -179,7 +179,7 @@ struct pci_pdev {
struct pci_msix_cap msix;
};
typedef void (*pci_pdev_enumeration_cb)(const struct pci_pdev *pdev, const void *data);
typedef void (*pci_pdev_enumeration_cb)(struct pci_pdev *pdev, const void *data);
static inline uint32_t pci_bar_offset(uint32_t idx)
{