[RCAR] Enable Linux-based hypervisor execution in AGL 69/17669/2
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Tue, 28 Aug 2018 06:52:13 +0000 (06:52 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 13 Nov 2018 13:57:43 +0000 (13:57 +0000)
commit64b4b013867a540800f67cdfea435723f7791931
tree197a19e5d47667fb4c016158dfa05137c3736137
parent3314a29f9572ff70b6ccf34f3916612c712162bf
[RCAR] Enable Linux-based hypervisor execution in AGL

The upstream version of AGL boots Linux in EL1. This mode is not
privileged enough to put in place the correct configuration of
an hypervisor (e.g., KVM).

This patch leverages the ATF rcar platform configuration variables to
boot the Linux kernel in EL2, instead of EL1, allowing Linux-based
hypervisors such as KVM to configure all the necessary stubs to
properly run virtual machines.

This patch has been successfully tested with ATF, KVM and AGL rootfs
on the Renesas R-Car M3.

Changelog:
- Added arm-trusted-firmware patch, which makes this work easy
  to be tested by the community
- This patch version does not contain Linux kernel modifications.
  In fact, these resulted not necessary with the proposed ATF patch
  and a recent kernel (higher than 4.6)

Bug-AGL: SPEC-497
Bug-AGL: SPEC-1571
Signed-off-by: Michele Paolino <m.paolino@virtualopensystems.com>
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Change-Id: I8d20e36a09be1dba35b10193643ea00e4f388e95
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
meta-agl-bsp/meta-rcar-gen3/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_git.bbappend [new file with mode: 0644]
meta-agl-bsp/meta-rcar-gen3/recipes-bsp/arm-trusted-firmware/files/0001-Boot-Normal-World-in-EL2.patch [new file with mode: 0644]