mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: implement sharing_mode.c for PCI emulation in sharing mode
Compared with partition_mode.c, the major difference between them is the list of PCI devices is statically defined or dynamically enumerated and allocated. Tracked-On: #1568 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com> Signed-off-by: Zide Chen <zide.chen@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -85,7 +85,14 @@ struct msix {
|
||||
};
|
||||
|
||||
struct pci_vdev {
|
||||
#ifndef CONFIG_PARTITION_MODE
|
||||
#define MAX_VPCI_DEV_OPS 4U
|
||||
struct pci_vdev_ops ops[MAX_VPCI_DEV_OPS];
|
||||
uint32_t nr_ops;
|
||||
#else
|
||||
struct pci_vdev_ops *ops;
|
||||
#endif
|
||||
|
||||
struct vpci *vpci;
|
||||
/* The bus/device/function triple of the virtual PCI device. */
|
||||
union pci_bdf vbdf;
|
||||
|
Reference in New Issue
Block a user