Don't know exactly why, but if I change the size for 1MB instead of 2MB, it 
works.

Is this because of this line in the mmu_cell.c?

size = MIN(region_size, NUM_TEMPORARY_PAGES * PAGE_SIZE);

Thus, is the maximum size of any memory region 1MB?

> Hi,
> 
> I checked the array sizes and they are correct. num_memory_regions uses the 
> ARRAY_SIZE macro:
> 
> .num_memory_regions = ARRAY_SIZE(config.mem_regions)
> 
> In Linux I can mmap and access the mapped region without errors.
> 
> Any other thought?
> 
> > 
> > Maybe the region was not properly registered. Did you increase the
> > mem_regions array size? Did you change num_memory_regions so that it
> > requires manual updates? That's better discussed over the full config.
> > 
> > Note that, if you want to share a region between root and non-root cell,
> > the latter also needs JAILHOUSE_MEM_ROOTSHARED.
> > 
> > Jan

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to