On 2018-05-23 20:53, Giovani Gracioli wrote:
> 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?
> 

No, the minimum size is 4K on all supported architectures.

Without the configs you were using, it's hard to say where the mistake is.

Also, what kind of inmate are you booting in the non-root cell?

Jan

>> 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

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate 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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to