mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
hv: add vmsix capability for hv-land ivshmem device
This patch exposes vmsix capability for ivshmem device: - Initialize vmsix capability in ivshmem PCI config space. - Expose BAR1 as vmsix entry table bar. Tracked-On: #5407 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Li, Fei <fei1.li@intel.com> Reviewed-by: Wang, Yu1 <yu1.wang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -10,6 +10,15 @@
|
||||
#define IVSHMEM_VENDOR_ID 0x1af4U
|
||||
#define IVSHMEM_DEVICE_ID 0x1110U
|
||||
#ifdef CONFIG_IVSHMEM_ENABLED
|
||||
|
||||
/*
|
||||
* Max number of peers for each ivshmem region, and
|
||||
* VM ID is used as peer IDs of this VM's ivshmem devices.
|
||||
*/
|
||||
#define MAX_IVSHMEM_PEER_NUM (CONFIG_MAX_VM_NUM)
|
||||
|
||||
/* Max number of MSIX table entries of shmem device. */
|
||||
#define MAX_IVSHMEM_MSIX_TBL_ENTRY_NUM 8U
|
||||
struct ivshmem_shm_region {
|
||||
char name[32];
|
||||
uint64_t hpa;
|
||||
|
Reference in New Issue
Block a user