Based on Kernel 4.19, I tried to run Jailhouse on real ARM board. I build the driver/firmware/tool/configuration file successfully, copy all these files to ARM board, then set the bootargs(mem=) and inert the driver module. I saw the Kernel crash when run the "jailhouse enable" command. 1. command /data # insmod jailhouse.ko /data # cp jailhouse.bin /lib/firmware/ /data # ./jailhouse enable aml-c2.cell
2. Attached is the detailed log -- 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/a46c03b4-9f14-4240-ad4f-0dad3a335f47n%40googlegroups.com.
/data # insmod jailhouse.ko /data # cp jailhouse.bin /lib/firmware/ /data # ./jailhouse enable aml-c2.cell Initializing Jailhouse hypervisor v0.12 (294-g6af5edfb-dirty) oPage pool usage after early setup:sOKOIi0Page pool usage after late setup[ 61.844932@0] enter_hypervisor done [ 61.845302@0] jailhouse_cmd_enable - 602 [ 61.845767@0] jailhouse_cmd_enable - 610 [ 61.846318@0] jailhouse_cmd_enable - 616 [ rf 600.12x745@0] jailhouse_cmd_enable - 620 [ 61.846894@1] Unable to handle kernel execution of user memory at virtual address 0000000000000000 [ 61.848384@1] Mem abort info: 2[ 61.849574@1] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 Unhcf 790x2f[ 61.850809@1] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 UnhLf0f 1f0x[ 61.852056@1] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 0 3c.1x52l58@0] ESR = 0x86000005 [ 61.852063@0] Exception class = IABT (current EL), IL = 32 bits [ 61.853317@1] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [ 61.854366@0] SET = 0, FnV = 0 [ 61.854368@0] EA = 0, S1PTW = 0 [ 61.854376@0] user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000b434e935 [ 61.855486@1] Mem abort info: [ 61.855872@0] [0000000000000000] pgd=0000000000000000, pud=0000000000000000 [ 61.856289@1] ESR = 0x86000005 [ 61.856293@1] Exception class = IABT (current EL), IL = 32 bits [ 61.857130@0] Internal error: Oops: 86000005 [#1] PREEMPT SMP [ 61.857503@1] Mem abort info: [ 61.858362@0] Modules linked in: jailhouse(O) dhd(O) overlay exportfs [ 60.x 40528764@1] ESR = 0x86000005 [ 61.859522@0] Process iot_network (pid: 1991, stack limit = 0x00000000fe4c9003) [ 61.859531@0] CPU: 0 PID: 1991 Comm: iot_network Tainted: G O 4.19.180-11479-g46df404924cb-dirty #12 [ 61.860244@1] Mem abort info: [ 61.860606@0] Hardware name: Google Venus B1 (DT) [ 61.861690@1] ESR = 0x86000005 [ 61.861854@0] pstate: 80400005 (Nzcv daif +PAN -UAO) [ 61.862770@1] Exception class = IABT (current EL), IL = 32 bits [ 61.864061@0] pc : (null) [ 61.864072@0] lr : ipv6_dev_get_saddr+0xec/0x17c [ 61.864074@0] sp : ffffff800b44ba70 [ 61.864076@0] x29: ffffff800b44bad0 x28: ffffffc01a748000 [ 61.864080@0] x27: 0000000000000000 x26: 000000000000ff9b [ 61.864086@0] x25: 000000000000000e x24: ffffff800b44bc38 [ 61.864452@1] Mem abort info: [ 61.865015@0] x23: 0000000000000000 x22: ffffff8008f71850 [ 61.865421@1] ESR = 0x86000005 [ 61.866033@0] x21: ffffffc03b713050 x20: ffffff8008f71740 [ 61.866799@1] SET = 0, FnV = 0 [ 61.867223@0] x19: ffffff800b44bc48 x18: 0000000000000000 [ 61.867227@0] x17: 0000000000000000 x16: 0000000000000001 [ 61.867799@1] EA = 0, S1PTW = 0 [ 61.868231@0] x15: 0000000000000000 x14: 0000604860480120 [ 61.868234@0] x13: 00000000000000fc x12: 000000000000c0fe [ 61.868917@1] user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000a2287d1f [ 61.869595@0] x11: 0000000000000000 x10: 0000000000000001 [ 61.869599@0] x9 : 0000000000000000 x8 : ffffffc01c007c08 [ 61.870287@1] Exception class = IABT (current EL), IL = 32 bits [ 61.870648@0] x7 : 0000604860480120 x6 : 0000000000001000 [ 61.871336@1] SET = 0, FnV = 0 [ 61.871732@0] x5 : 0000000000000000 x4 : 0000000000000001 [ 61.872421@1] SET = 0, FnV = 0 [ 61.872815@0] x3 : ffffff800b44ba88 x2 : ffffffc01c007c00 [ 61.873502@1] EA = 0, S1PTW = 0 [ 61.874178@0] x1 : ffffff800b44ba70 x0 : 0000000000000001 [ 61.874182@0] Call trace: [ 61.874186@0] (null) [ 61.874594@1] Exception class = IABT (current EL), IL = 32 bits [ 61.875275@0] ip6_dst_lookup_tail+0x268/0x3d8 [ 61.875278@0] ip6_dst_lookup_flow+0x40/0x9c [ 61.875284@0] ip6_datagram_dst_update+0x184/0x248 [ 61.875957@1] SET = 0, FnV = 0 [ 61.876802@0] __ip6_datagram_connect+0x250/0x2ec [ 61.876805@0] ip6_datagram_connect+0x34/0x54 [ 61.876812@0] inet_dgram_connect+0x70/0xd4 [ 61.877490@1] EA = 0, S1PTW = 0 [ 61.878171@0] __sys_connect+0xb4/0x100 [ 61.878930@1] user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000a2287d1f [ 61.879608@0] __arm64_sys_connect+0x1c/0x28 [ 61.879613@0] el0_svc_common+0x94/0x108 [ 61.879617@0] el0_svc_handler+0x1c/0x24 [ 61.880010@1] [0000000000000000] pgd=0000000000000000, pud=0000000000000000 [ 61.880691@0] el0_svc+0x8/0x14c [ 61.880698@0] Code: bad PC value [ 61.892977@0] ---[ end trace e1366e7c21b5e31d ]--- [ 61.906267@0] Kernel panic - not syncing: Fatal exception [ 61.906297@0] SMP: stopping secondary CPUs [ 62.961828@0] SMP: failed to stop secondary CPUs 0-1 [ 62.961848@0] Kernel Offset: disabled [ 62.962205@0] CPU features: 0x0,20002000 [ 62.962692@0] Memory Limit: 800 MB [ 62.975773@0] Rebooting in 5 seconds.. [ 67.975973@0] SMP: stopping secondary CPUs [ 69.031060@0] SMP: failed to stop secondary CPUs 0-1 [ 69.031080@0] reboot reason 12 [ 69.031362@0] Reboot failed -- System halted
