1 # Jailhouse support layer
3 Yocto layer that enables use of the Jailhouse partitioning hypervisor - <https://github.com/siemens/jailhouse>.
7 The AGL feature `agl-jailhouse` has to be enabled. That needs to be done when including aglsetup.sh, for example:
9 source meta-agl/scripts/aglsetup.sh -m raspberrypi4 agl-demo agl-netboot agl-appfw-smack agl-jailhouse
11 That will enable this layer and include the `jailhouse` package in the image.
13 Then, in the target system, the cell configurations (*.cell) are placed in `/usr/share/jailhouse/cells/` and the demo inmates (bare-metal applications to run in a non-root cell) are located in `/usr/share/jailhouse/inmates`.
15 ## Raspberry Pi 4 example
17 Use this commands to enable Jailhouse and run the GIC demo inmate in a non-root cell. After issuing these commands, the GIC demo will be measuring jitter of a timer and print the output on the serial console of the RPi.
19 jailhouse enable /usr/share/jailhouse/cells/rpi4.cell
20 jailhouse cell create /usr/share/jailhouse/cells/rpi4-inmate-demo.cell
21 jailhouse cell load inmate-demo /usr/share/jailhouse/inmates/gic-demo.bin
22 jailhouse cell start inmate-demo
26 This layer depends on:
28 * URI: git://git.yoctoproject.org/meta-arm
30 * revision: 0bd9c740267c0926e89bcfdb489790b7bf1fbd4b
31 * note: actually only required on the Raspberry Pi 4 target
36 * All (1G-8G) memory variants. But note that there is 256M reserved for Jailhouse and 256MiB for GPU in AGL, so the smaller variants are not recommended.
39 * Work in progress. Requires KVM. Nested virtualization must be enabled on the host. Currently, the right configuration of QEMU and Jailhouse to work out-of-box is being worked on.