On 07.08.19 13:14, [email protected] wrote:
Loadable does not imply that the root cell will get access to that region
automatically. You also need a memory region in the root cell that covers
this
area. Access to the overlap will be controlled by the hypervisor safely,
i.e. it
will be taken from the root cell once the non-root cell starts to run.
It makes sense. I no longer have those unhandled traps related to RAM.
Now I'm having the follwing:
Unhandled data read at 0x1c2006c(4)
And which cell is triggering that?
(I think we need to reformat this line - everyone cuts of the originating
cell...)
(...)
The debug console for bananapi is set like:
.debug_console = {
.address = 0x01c28000,
.size = 0x1000,
//.clock_reg = 0x01c2006c,
//.gate_nr = 16
//.divider = 0x0d,
.type = JAILHOUSE_CON_TYPE_8250,
.flags = JAILHOUSE_CON_ACCESS_MMIO |
JAILHOUSE_CON_REGDIST_4,
},
And for bananapi-gic-demo:
.console = {
.address = 0x01c29c00,
.clock_reg = 0x01c2006c,
.gate_nr = 23,
.divider = 0x0d,
.type = JAILHOUSE_CON_TYPE_8250,
.flags = JAILHOUSE_CON_ACCESS_MMIO |
JAILHOUSE_CON_REGDIST_4,
},
By the output and both configuration files, I suppose that that clock_reg from
bananapi-gic-demo is triggering the trap. Can you please explain how this works
and how I can manage to fix the situation?
If that register shall be accessed by the inmate (required if Linux turns /
leaves off the UART), you need to grant access. Granularity of that access
permission can be 4 bytes here (single 32-bit register) - provided Linux won't
touch the same one after Jailhouse started. Again, make sure to organize the
root cell config already in accordingly sized memory regions so that they can be
taken away without breaking up an existing one.
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/5323df1d-ebce-eb6c-dab2-6a1f43038cc2%40web.de.