On 13.05.22 15:42, Jean de Bonfils wrote:
> Hi everyone,
> I can not understand the relationship between *phys_start *and
> *virt_start* defined in cells and Intermediate Physical Address,
> Physical address...
> 
> Are phys_start addresses defined in cells IPA or PA ?

It's PA, the host's view of physical addresses.

> Are virt_start addresses defined in cells VA or IPA ?

IPA. The hypervisor does not mess with the guest's own translation
tables (IPA->VA).

> Why in inmate cell samples virt_start are equals to phys_start ? What if
> I would set a different mapping ?

There are basically two reason to ID-map resources into the cell:

 - for physical resources, it avoids having to invent an own guest
   address layout and permits to reuse device tree fragments from the
   host

 - for RAM, this works around missing IOMMUs (which has isolation
   implications as well, obviously)

If non-of that matters, you may also relocate the resources of a
non-root cell.

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/364721db-8754-728e-e117-df4df2e757a1%40siemens.com.

Reply via email to