mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
config_tools: support IVSHMEM devices region ID configuration
This patch adds ivshmem region ID configuration support when user configure ACRN IVSHMEM devices via ACRN config tool, this ID provides VMs with a stable identification of multiple shared memory regions. Also add logic to generate launch script with region ID configured as below: `add_virtual_device 8 ivshmem hv:/shm_region_0,256,1` Tracked-On: #8566 Signed-off-by: Kunhui-Li <kunhuix.li@intel.com> Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
committed by
acrnsi-robot
parent
f6bb15c85c
commit
a7a6732580
@@ -21,6 +21,8 @@
|
||||
#define MAX_IVSHMEM_MSIX_TBL_ENTRY_NUM 8U
|
||||
struct ivshmem_shm_region {
|
||||
char name[32];
|
||||
uint16_t region_id;
|
||||
uint8_t reserved[6];
|
||||
uint64_t hpa;
|
||||
uint64_t size;
|
||||
struct ivshmem_device *doorbell_peers[MAX_IVSHMEM_PEER_NUM];
|
||||
|
Reference in New Issue
Block a user