El jueves, 22 de marzo de 2018, 16:33:02 (UTC+1), Ralf Ramsauer  escribió:
> On 03/22/2018 04:23 PM, iallende wrote:
> > El miércoles, 21 de marzo de 2018, 15:25:02 (UTC+1), Ralf Ramsauer  
> > escribió:
> >> Hi,
> >>
> >> On 03/21/2018 02:54 PM, iallende wrote:
> >>> Hi everyone,
> >>>
> >>> I am trying to run Jailhouse in the ZynqMP, with Linux PREEMPT RT in 
> >>> another cell. However, I have some problems when I add the second Linux.
> >>>
> >>> root@xilinx-zcu102-2017_4:/# modprobe jailhouse
> >>> [   52.445169] jailhouse: loading out-of-tree module taints kernel.
> >>> root@xilinx-zcu102-2017_4:/# ls /dev/jailhouse ^C
> >>> root@xilinx-zcu102-2017_4:/# jailhouse enable zynqmp-zcu102.cell 
> >>>
> >>> Initializing Jailhouse hypervisor v0.7 (0-g5c13b64) on CPU 2
> >> Please checkout next and try again. This might already fix your issue.
> > With v0.8 i get this WARNING and I can load the module:
> > WARNING: "__hyp_stub_vectors" [/jailhouse/driver/jailhouse.ko] undefined!
> Please switch to next, and not to v0.8. Compile your kernel with
> CONFIG_KALLSYMS_ALL=y, or use this [1] patch.
> 
>   Ralf
> 
> [1]
> http://git.kiszka.org/?p=linux.git;a=commit;h=2a681cb2213e3ea0f142fae7345fb80208a88a53
> >>> Code location: 0x0000ffffc0200050
> >>> Page pool usage after early setup: mem 33/996, remap 64/131072
> >>> Initializing processors:
> >>>  CPU 2... OK
> >>>  CPU 0... OK
> >>>  CPU 3... OK
> >>>  CPU 1... OK
> >>> Adding virtual PCI device 00:00.0 to cell "ZynqMP-ZCU102"
> >>> Adding virtual PCI device 00:01.0 to cell "ZynqMP-ZCU102"
> >>> Page pool usage after late setup: mem 42/996, remap 69/131072
> >>> Activating hypervisor
> >>> [   63.697232] jailhouse: CONFIG_OF_OVERLAY disabled
> >>> [   63.704029] jailhouse: failed to add virtual host controller
> >>> [   63.711610] The Jailhouse is opening.
> >>>
> >>> root@xilinx-zcu102-2017_4:/# jailhouse cell linux 
> >>> zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio 
> >>>
> >>> FATAL: unhandled trap (exception class 0x17)
> >> Exception class 0x17 is a SMC64 call.
> >>
> >>> Cell state before exception:
> >>>  pc: ffffff800808e390   lr: ffffff8008467504 spsr: 20000145     EL1
> >>>  sp: ffffffc87b927ab0  esr: 17 1 0000000
> >>>  x0: 00000000c2000014   x1: 00000000fd1a0060   x2: 0000000000000000
> >> Furthermore, it's a SIP_64.
> >>
> >> Commit 2482c47bc2d05f ("arm64: ignore SIPs used for low-power modes") on
> >> next will probably fix your issue.
> >>
> >>   Ralf
> >>>  x3: 0000000000000000   x4: 0000000000000000   x5: 0000000000000000
> >>>  x6: 0000000000000000   x7: 0000000000000000   x8: ffffff8008d27ee0
> >>>  x9: ffffffc87aaa4b5c  x10: ffffffc87b927b4c  x11: ffffff8008c8ccb2
> >>> x12: 0000000000000000  x13: 0000000000000f93  x14: 0000000000000001
> >>> x15: 0000000000000000  x16: ffffff8008193240  x17: 00000000004128f0
> >>> x18: 0000000000040900  x19: ffffffc87b927b28  x20: 0000000000000001
> >>> x21: 000000004784b740  x22: 000000004784b740  x23: fffffffffffffffa
> >>> x24: 00000000000f4240  x25: 00000000000f4240  x26: 00000000000f4240
> >>> x27: 0000000000000000  x28: 0000000000000000  x29: ffffffc87b927ac0
> >>>
> >>> Parking CPU 2 (Cell: "ZynqMP-ZCU102")
> >>>
> >>>
> >>> Does anyone know why I have this problem? Am I missing any step?
> >>>
> >
I get a similar result with next:

root@xilinx-zcu102-2017_4:/cells# jailhouse cell linux 
zynqmp-zcu102-linux-demo.cell Image -d system.dtb -i rootfs.cpio -c 
"console=ttyS1,1152000"
[  412.856498] CPU2: shutdown
[  412.861054] psci: CPU2 killed.
[  412.900346] CPU3: shutdown
[  412.904853] psci: CPU3 killed.
Adding virtual PCI device 00:00.0 to cell "ZynqMP-linux-demo"
Shared memory connection established: "ZynqMP-linux-demo" <--> "ZynqMP-ZCU102"
Adding virtual PCI device 00:02.0 to cell "ZynqMP-linux-demo"
Created cell "ZynqMP-linux-demo"
Page pool usage after cell creation: mem 59/993, remap 69/131072
[  412.951205] Created Jailhouse cell "ZynqMP-linux-demo"
Cell "ZynqMP-linux-demo" can be loaded
Started cell "ZynqMP-linux-demo"
Unhandled data write at 0xf9020004(4)

FATAL: unhandled trap (exception class 0x24)
Cell state before exception:
 pc: ffffff800840e4a4   lr: ffffff800840e49c spsr: 60000085     EL1
 sp: ffffff8008ca3dc0  esr: 24 1 1800047
 x0: 00000000000000f0   x1: 0000000000000000   x2: ffffff800800041c
 x3: 0000000000000080   x4: 00000000a0a0a0a0   x5: ffffff8008000394
 x6: 00000000ffffffff   x7: 0000000000000000   x8: ffffffc016808400
 x9: 0000000000000000  x10: ffffffbf005a0220  x11: ffffff800840e238
x12: ffffff800840dc08  x13: 0000000000000000  x14: 0000000000000000
x15: 0000000000000000  x16: 0000000000000002  x17: 0000000000000002
x18: 0000000000000000  x19: ffffff8008caa000  x20: ffffff8008020004
x21: 0000000000000000  x22: ffffff8008000000  x23: ffffff8008ca9ff8
x24: ffffffc017fcafb8  x25: 0root@xilinx-zcu102-2017_4:/cells# 000000000000000  
x26: ffffffc017fcafb8
x27: 0000000000000000  x28: 0000000810e20018  x29: ffffff8008ca3dc0


-- 
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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to