HV: move pci_vdevs[] array from vm.h to vpci.h

pci_vdevs is vpci stuff so it would be better to make it managed by vpci rather than by vm.h,
both sharing mode and partition mode can use pci_vdevs[] to maintain its own
per vm vdev list.

Tracked-On: #2534
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
dongshen
2019-02-25 13:34:02 -08:00
committed by Eddie Dong
parent 8c3cfe62aa
commit 00f9b85072
3 changed files with 31 additions and 17 deletions

View File

@@ -119,11 +119,12 @@ struct vpci_ops {
uint32_t bytes, uint32_t val);
};
struct acrn_vpci {
struct acrn_vm *vm;
struct pci_addr_info addr_info;
const struct vpci_ops *ops;
uint32_t pci_vdev_cnt;
struct pci_vdev pci_vdevs[CONFIG_MAX_PCI_DEV_NUM];
};
#ifdef CONFIG_PARTITION_MODE