mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
hv: add ivshmem device
Ivshmem device is used for shared memory based communication between
pre-launched/post-launched VMs.
this patch implements ivshmem device configuration space initialization
and ivshmem device operation methods.
v2: introduce init_one_pcibar interface to simplify BAR initialization
operation of HV emulated PCI device.
v3: 1) due to init_one_pcibar API is only used for pre-launched VM vdevs
it can't be applied to all vdevs, so remove it.
2) move ivshmem BARs initialization to subsequent patch, this patch
only introduce ivshmem configuration space initialization.
Tracked-On: #4853
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -14,6 +14,8 @@ struct ivshmem_shm_region {
|
||||
uint64_t size;
|
||||
};
|
||||
|
||||
extern const struct pci_vdev_ops vpci_ivshmem_ops;
|
||||
|
||||
/**
|
||||
* @brief Initialize ivshmem shared memory regions
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user