That was indeed the issue, so thank you very much for the quick response!
I'm now facing the next problem:

Adding virtual PCI device 00:0c.0 to cell "linux-x86-demo"
Adding virtual PCI device 00:0d.0 to cell "linux-x86-demo"
Adding virtual PCI device 00:0e.0 to cell "linux-x86-demo"
Adding virtual PCI device 00:0f.0 to cell "linux-x86-demo"
Created cell "linux-x86-demo"
Page pool usage after cell creation: mem 375/975, remap 16395/131072
Cell "linux-x86-demo" can be loaded
CPU 2 received SIPI, vector 100
CPU 3 received SIPI, vector 100
Started cell "linux-x86-demo"
FATAL: xAPIC access in x2APIC mode
FATAL: Unhandled APIC access, qualification 20
RIP: 0xffffffff81649d42 RSP: 0xffffffff82a03e98 FLAGS: 10046
RAX: 0xffffffff81649d40 RBX: 0x000000000479f000 RCX: 0x0000000002410067
RDX: 0xffffffff82fbc796 RSI: 0xffff9de180000000 RDI: 0x0000000000000020
CS: 10 BASE: 0x0000000000000000 AR-BYTES: a09b EFER.LMA 1
CR0: 0x0000000080050033 CR3: 0x000000000240a000 CR4: 0x00000000000626b0
EFER: 0x0000000000000d01
Parking CPU 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.

Is there a guide somewhere that documents the steps necessary for adjusting 
the linux-x86-demo cell config?

Am Freitag, 14. Februar 2020 15:15:34 UTC+1 schrieb Jan Kiszka:
>
> On 14.02.20 14:31, [email protected] <javascript:> wrote: 
> > Hi all, 
> > 
> > I'm trying to create a non-root Linux cell but I'm stuck on the 
> > userspace tooling apparently. 
> > I can run the apic-demo on x86 just fine, but trying to create the Linux 
> > cell yields the following output: 
> > 
> > | 
> > $ sudo jailhouse cell linux linux-x86-demo.cell bzImage 
> > Traceback(most recent call last): 
> > File"/usr/libexec/jailhouse/jailhouse-cell-linux",line 850,in<module> 
> >      cell =JailhouseCell(config) 
> > File"/usr/lib/python3.7/site-packages/pyjailhouse/cell.py",line 
> > 36,in__init__ 
> > raisee 
> > File"/usr/lib/python3.7/site-packages/pyjailhouse/cell.py",line 
> > 33,in__init__ 
> >      fcntl.ioctl(self.dev,JailhouseCell.JAILHOUSE_CELL_CREATE,create) 
> > OSError:[Errno7]Argumentlist too long 
> > | 
> > 
> > I have been following the documentation from here: 
> > 
> https://github.com/siemens/jailhouse/blob/master/Documentation/non-root-linux.txt.
>  
>
> > "bzImage" is the compiled guest cell kernel. The linux-x86-demo config 
> > was not altered from the default one in the GIT repository. 
> > 
> > The version of Jailhouse I'm using is 0.12 
> > (92db71f257fabd3c08fa4b99498fa61a41ea831d). 
> > My root cell config and all the other stuff is the same as stated here: 
> > https://groups.google.com/forum/#!topic/jailhouse-dev/p0fcHAib0rw. 
> > Right now I am loading the driver (jailhouse.ko) as out-of-tree module, 
> > but I made sure the version matches with the userspace tools (both built 
> > from the same GIT revision). 
> > 
> > Cheers 
> > 
>
> You likely have to patch the ID of the ioapic in linux-x86-demo.c to the 
> value used in your generated config. 
>
> If that doesn't help: Youcan build Jailhouse with CONFIG_TRACE_ERROR 
> (see Documentation/hypervisor-configuration.md). That will report where 
> the error is thrown and may give us another hint what is causing this. 
>
> 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/439a798e-f9c3-4455-8128-e4047e5aa9e3%40googlegroups.com.

Reply via email to