HV: remove function pci_pdev_foreach()

And make other related changes accordingly:
 Remove pci_pdev_enumeration_cb define
 Create init_vdevs() to iterate through the pdev list and create vdev for each pdev
 Export num_pci_pdev and pci_pdev_array as globals in header file

Minor cosmetic fix:
 Remove trailing whitespace

Tracked-On: #3022
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
dongshen
2019-05-21 14:40:49 -07:00
committed by ACRN System Integration
parent 536c69b9ff
commit a6503c6af3
4 changed files with 24 additions and 21 deletions

View File

@@ -10,7 +10,7 @@
/*
* @pre vm_id < CONFIG_MAX_VM_NUM
* @post return != NULL
* @post return != NULL
*/
struct acrn_vm_config *get_vm_config(uint16_t vm_id)
{