On 08.02.21 10:38, Sainz Markel wrote: > Hi all, > > > > I’m trying to create a setup in which every core is isolated (6 isolated > cores). To this end, I’ve created 6 .cell files based on the apic-demo > example. Each .cell file reserves a single core and a memory region. The > RAM memory region has been assigned by dividing the biggest memory > region available in sysconfig.cell into 6 same size parts. Each of the > parts is assigned to a .cell file. The PIO regions have been left > unaltered as in apic-demo. I am struggling with two problems when trying > to start Jailhouse with our reqs. > > > > *The initialization of Jailhouse env is done correctly with* > > /jailhouse enable sysconfig.cell/ > > / / > > *The first issue comes when trying to reserve core 0, which seems to be > reserved for the Rootcell* > > /jailhouse cell create core0-cell.cell/ > > *This command throws a */JAILHOUSE_CELL_CREATE: Invalid argument/*error* >
Linux does not permit offlining CPU0 (boot cpu) by default unless explicitly told to (cpu0_hotplug or CONFIG_BOOTPARAM_HOTPLUG_CPU0). > > > *Same thing happens if I try to load an app into the Rootcell by* > > /jailhouse cell load Rootcell /path/to/inmates/apic-demo.bin/ > > *In this case the error is */JAILHOUSE_CELL_LOAD: Invalid argument**/ > > / / > The root cell cannot be replaced with a different application. That's an architectural property of Jailhouse. > *The other issue happens when trying to assign a .bin file to any cell > (for example in cell1)* > > *The creation of the other cells (cores 1-5) works correctly:* > > /jailhouse cell create core1-cell.cell/ > > /jailhouse cell create core2-cell.cell/ > > /jailhouse cell create core3-cell.cell/ > > /jailhouse cell create core4-cell.cell/ > > /jailhouse cell create core5-cell.cell/ > > / / > > *I’ve created a file (core1-app.c) which is a clone of apic-demo.c and > compiled it with the Makefile in inmates. When trying to load it* > Hope you do not let all cells use the same UART console in this duplication (PIO 0x3f8 etc.). > /jailhouse cell load core1-cell /path/to/inmates/core1-app.bin/ > > *the result is* > > /WARNING: Overflow during MMIO region registration!/ > Something may have caused a subpage MMIO region to be created (page-unaligned memory region). If that region split-up didn't exist in the root cell already, things will fail. But I suspect that subpage is rather a symptom, not the cause. Where there any compiler warnings when building the config? I would also recommend checking our configs via "jailhouse config check root.cell cell1.cell cell2.cell ...". Or share what you created. Jan -- Siemens AG, T RDA IOT 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/290f756e-4a93-46f8-0eb6-a15206bdc1d7%40siemens.com.
