mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
hv: implement ivshmem memory regions initialization
The ivshmem memory regions use the memory of the hypervisor and they are continuous and page aligned. this patch is used to initialize each memory region hpa. v2: 1) if CONFIG_IVSHMEM_SHARED_MEMORY_ENABLED is not defined, the entire code of ivshmem will not be compiled. 2) change ivshmem shared memory unit from byte to page to avoid misconfiguration. 3) add ivshmem configuration and vm configuration references v3: 1) change CONFIG_IVSHMEM_SHARED_MEMORY_ENABLED to CONFIG_IVSHMEM_ENABLED 2) remove the ivshmem configuration sample, offline tool provides default ivshmem configuration. 3) refine code style. v4: 1) make ivshmem_base 2M aligned. 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:
@@ -306,6 +306,7 @@ VP_DM_C_SRCS += dm/vpci/vdev.c
|
||||
VP_DM_C_SRCS += dm/vpci/vpci.c
|
||||
VP_DM_C_SRCS += dm/vpci/vhostbridge.c
|
||||
VP_DM_C_SRCS += dm/vpci/vpci_bridge.c
|
||||
VP_DM_C_SRCS += dm/vpci/ivshmem.c
|
||||
VP_DM_C_SRCS += dm/vpci/pci_pt.c
|
||||
VP_DM_C_SRCS += dm/vpci/vmsi.c
|
||||
VP_DM_C_SRCS += dm/vpci/vmsix.c
|
||||
|
Reference in New Issue
Block a user