jailhouse enable - request_mem_region failed for hypervisor memory.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

jailhouse enable - request_mem_region failed for hypervisor memory.

Jump to solution
1,099 Views
neo2
Contributor III

Hi, i.MX Virtualization User's Guide

Any idea why this is failing?

0root@imx8mqevk:~# jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell

[ 1372.528225] jailhouse: request_mem_region failed for hypervisor memory.
[ 1372.534954] jailhouse: Did you reserve the memory with "memmap=" or "mem="?
JAILHOUSE_ENABLE: Invalid argument
root@imx8mqevk:~#

0 Kudos
1 Solution
1,097 Views
neo2
Contributor III

I worked out the missing step.

During the Linux boot - in the serial terminal it prompts to press a key.

Press a key and this enters U-boot terminal

Then 

run jh_mmcboot

etc.

Then this starts the Jailhouse DTB (Device Tree Blob)

Then I run type these commands...

insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/jailhouse.ko
insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/uio_ivshmem.ko
jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell

 

View solution in original post

0 Kudos
1 Reply
1,098 Views
neo2
Contributor III

I worked out the missing step.

During the Linux boot - in the serial terminal it prompts to press a key.

Press a key and this enters U-boot terminal

Then 

run jh_mmcboot

etc.

Then this starts the Jailhouse DTB (Device Tree Blob)

Then I run type these commands...

insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/jailhouse.ko
insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/uio_ivshmem.ko
jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell

 

0 Kudos