On 14.02.20 16:04, [email protected] wrote:
That was indeed the issue, so thank you very much for the quick response!
I'm now facing the next problem:
|
AddingvirtualPCI device 00:0c.0to cell "linux-x86-demo"
AddingvirtualPCI device 00:0d.0to cell "linux-x86-demo"
AddingvirtualPCI device 00:0e.0to cell "linux-x86-demo"
AddingvirtualPCI device 00:0f.0to cell "linux-x86-demo"
Createdcell "linux-x86-demo"
Pagepool usage after cell creation:mem 375/975,remap 16395/131072
Cell"linux-x86-demo"can be loaded
CPU 2received SIPI,vector 100
CPU 3received SIPI,vector 100
Startedcell "linux-x86-demo"
FATAL:xAPIC access inx2APIC mode
FATAL:UnhandledAPIC access,qualification 20
RIP:0xffffffff81649d42RSP:0xffffffff82a03e98FLAGS:10046
RAX:0xffffffff81649d40RBX:0x000000000479f000RCX:0x0000000002410067
RDX:0xffffffff82fbc796RSI:0xffff9de180000000RDI:0x0000000000000020
CS:10BASE:0x0000000000000000AR-BYTES:a09b EFER.LMA 1
CR0:0x0000000080050033CR3:0x000000000240a000CR4:0x00000000000626b0
EFER:0x0000000000000d01
ParkingCPU 2(Cell:"linux-x86-demo")
|
From what I can gather from the source code, my system is able to use
the faster x2APIC mode (programmed using MSRs), but Jailhouse is trying
to perform MMIO accesses which are only possible in legacy xAPIC mode.
Check if your non-root Linux comes with CONFIG_X86_X2APIC=y - I suspect
it doesn't.
You can find a working x86 inmate kernel config in
https://github.com/siemens/jailhouse-images/blob/master/recipes-kernel/linux/files/amd64_defconfig_5.4
(multi-purpose config, thus a bit larger than technically needed).
Is there a guide somewhere that documents the steps necessary for
adjusting the linux-x86-demo cell config?
Nope, unfortunately not. The mid-term plan is still to enhance the
config generator to build also non-root configs. Any contribution,
including "just" documentation, would be very welcome!
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/5d6e66d7-2a25-1678-2ff1-247e861ab8d5%40siemens.com.