On 12.04.22 12:18, Andreas Orfanos wrote:
> Hello,
> 
> I would like to use a shared memory region between an inmate and the
> Linux in a way that is coherent. The memory region is a memory pool
> partitioned to provide memory blocks to inmates and to the Linux
> processes that have mmap'ed the region. The Linux process allocate
> blocks of memory from that region for local data processing, and then
> indicate to the inmate that a block of data is ready for further
> processing. The inmate takes the indication and access the shared memory
> block with a cookie to continue further processing on the block.
> 
> I would like to keep cache coherent between the inmate and the Linux but
> not sure if that would work in Jail house. Do I have to clean and
> invalidate the cache from Linux all the time when I pass the processing
> to the inmate? I am using a Xilinx SoC with a cluster of 4xCrotex A-53

Shared memory you configure between cells is just like shared memory
between processing in the same cell - cache coherency is ensured. Just
follow the existing examples for ivshmem devices.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/416c28fd-5904-0b77-ede8-da1199c27df8%40siemens.com.

Reply via email to