diff --git a/hypervisor/include/dm/ivshmem.h b/hypervisor/include/dm/ivshmem.h index 520d01551..776f2400e 100644 --- a/hypervisor/include/dm/ivshmem.h +++ b/hypervisor/include/dm/ivshmem.h @@ -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]; diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue index ba22f59ee..a2e02ad22 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/IVSHMEM_REGION.vue @@ -55,6 +55,22 @@ + + + + + + + + +
Shared VMs

Select all VMs that will use this shared memory region

diff --git a/misc/config_tools/schema/types.xsd b/misc/config_tools/schema/types.xsd index 808c6d68f..94be5c620 100644 --- a/misc/config_tools/schema/types.xsd +++ b/misc/config_tools/schema/types.xsd @@ -286,6 +286,11 @@ in megabytes. The value should be a power of 2 and no more than 512. + + + A stable identification when multiple shared memory regions are provided. + + Select all VMs that use the shared memory region. diff --git a/misc/config_tools/xforms/ivshmem_cfg.h.xsl b/misc/config_tools/xforms/ivshmem_cfg.h.xsl index 97ec6697c..63f973847 100644 --- a/misc/config_tools/xforms/ivshmem_cfg.h.xsl +++ b/misc/config_tools/xforms/ivshmem_cfg.h.xsl @@ -64,9 +64,11 @@ + { \ +