Hi Michele,

On 12/01/2024 14:07, Michele Pescapè wrote:
jailhouse cell load linux-2 linux-loader.bin -a 0x0 ../buildroot-2023.11/output/images/bzImage -a 0xffbe00 parameters -a 0x1000
jailhouse cell start linux-2

I take it the kernel is loaded at 0xffbe00 which is right at the edge of the low ram region. In fact after issuing the cell load command and adjusting the path for the loader I get JAILHOUSE_CELL_LOAD: Invalid argument.

Just tested cell-linux in a qemu machine, there it works, with pretty similar addresses, which got me confused.

After double-checking it: 0xffb.e00 is *not* at the edge of low mem:

Low mem is     0x000.000 -- 0x0ff.fff
Comm region is 0x100.000 -- 0x100.fff

0xffb.e00 is (obviously) way above.

Please try to set your high mem's .virt_start to 0x200000. Then, 0xffbe00 is offsetted ~16MB inside your highmem, and it should work!

IOW:

/* high RAM */
{
        .phys_start = 0x42300000,
        .virt_start = 0x200000,
        .size = 0x11000000,
        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                 JAILHOUSE_MEM_EXECUTE |
                 JAILHOUSE_MEM_LOADABLE,
},

Thanks
  Ralf

--
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/0aa4c10d-a635-4a37-bf51-2b9863beb2a0%40oth-regensburg.de.

Reply via email to