HV: init ptdev bar during runtime for partition mode

Current pt devices bar info for partion mode is hardcoded in
vm_description.c, now we remove the hardcoded info and parse the bar
info during pt devices init.

Tracked-On: #2431
Signed-off-by: Victor Sun <victor.sun@intel.com>
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Victor Sun
2019-01-15 15:28:40 +08:00
committed by ACRN System Integration
parent 983b717a61
commit f082176df0
3 changed files with 65 additions and 0 deletions

View File

@@ -225,6 +225,7 @@ void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint
void enable_disable_pci_intx(union pci_bdf bdf, bool enable);
void pci_pdev_foreach(pci_pdev_enumeration_cb cb, const void *ctx);
struct pci_pdev *find_pci_pdev(union pci_bdf pbdf);
void init_pci_pdev_list(void);