[U-Boot] [RFD] OMAP5: Working HYP mode

Andre Przywara andre.przywara at linaro.org
Wed Sep 25 09:57:16 CEST 2013


On 09/17/2013 12:28 AM, Alexander Tarasikov wrote:
> Hello, u-boot developers!
> I am attaching a patch to enable the HYP (hypervisor)
> mode on the OMAP5 CPU. It is based on a previous patch by
> Ian Molton. For some reason, Ian's patch was incorrect
> (loading PC with the wrong address, missing memory barriers,
> and, most importantly, using the wrong SMC call). I think it
> is because Ian was using some early omap5 prototype, and I was
> using the SVT OMAP5432UEVM board which is commercially available.
>
> Since this is a gross hack, I neither expect nor want it to be merged,
> but I think people experimenting with ARM virtualization will find
> it useful.
>
> I have KVM working on OMAP5 as of now (using KVM patches from
> openvirtualization and some linux kernel bugfixes of my own) and
> I plan to write a blog post soon about how to repeat my steps.
> My plan is to publish the patches to fix the bugs I've found.
>
> I would like to receive comments on what is the planned way to implement
> the HYP switching in u-boot and whether it is possible without using the
> TrustZone SMC calls.

Alexander,

have you seen my series?

http://lists.denx.de/pipermail/u-boot/2013-September/163019.html
[U-Boot] [PATCH v5 0/8] ARMv7: Add HYP mode switching support

I am about to support more boards, but OMAP5 seems very different, 
probably because it starts u-boot in non-secure state already, right?
So all the magic is in the firmware, which just needs to be called by 
smc calls, right?
So it looks like one could at least use some infrastructure 
(CONFIG_ARMV7_VIRT and the higher level .c files) to properly merge 
OMAP5 support in. Also needed would be to make most code of my patch 
optional by using the proper defines.
What do you think?

Regards,
Andre.



More information about the U-Boot mailing list