mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 20:59:03 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user