ARMv7 / RK3288 Hypervisor Support
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
All,
I recently ported U-Boot over to the RK3288-based Veyron Speedy 4GB Chromebook in an attempt to gain KVM (hypervisor) support [1]. However, in addition to the GIC being completely masked off in non-secure mode by the AXI bus, the machine hangs immediately upon exiting the NS/HYP switch monitor mode call in arch/arm/cpu/armv7/nonsec_virt.S.
I notice that the hypervisor setup code was revised back in 2014 to support platforms with secure RAM, effectively replacing the early hvc 0 call with a late smc 0-based setup routine. Has the current hypervisor implementation been tested on the original Versatile Express TC-2 board since the setup code modification?
Is anyone else working on RK3288 hypervisor support? The datasheet claims virtualization extensions are supported, but right now that seems quite dubious unless 1.) the GIC can be un-masked in normal mode and 2.) the hang on HYP mode switch can be traced to an implementation fault in u-boot.
Thanks!
[1] Work-in-progress patches:
http://raptorengineering.com/u-boot/rk3288/patches/wip/
- --
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645 (direct line)
+1 (512) 690-0200 (switchboard)
http://www.raptorengineeringinc.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJXFVHXAAoJEK+E3vEXDOFbop0IAJk6D2lvb4dPwUvo/EUDo1CJ A7YEQTIYc7i5Fa0jTd3ttpVDMbwt2Q6PSdhl2xBT1GoY1aWtI65r6cNgZxRE081C YQ7VFHNa7uR9Li+dKYeKA0JWrOYe8WQDL1/8jphAfMRZZ3D0mTfbV6xa+vdQI5La I493OwS3yssMXha0PCO7PN5+HrFYPFg2UCQMkz1uwH3JCi879XR/+Wy0luvDnx7c tTD589bggKlbY/cHnEG0XNjj4ChfCcTNQ1r62GTnRgSsGCRklvTi+B40aM9vLg5f swIiKCUAWqle8aQyRxVsyGEwr6N11SvU4NjRryybUgLvV6SfaIWCUejuCT92ZE4= =grIP
-----END PGP SIGNATURE-----
Hi Tim,
[just spotted this by pure luck...]
Quoted 7 lines
I recently ported U-Boot over to the RK3288-based Veyron Speedy 4GB Chromebook in an attempt to gain KVM (hypervisor) support [1]. However,
in addition to the GIC being completely masked off in non-secure mode by
the AXI bus, the machine hangs immediately upon exiting the NS/HYP switch monitor mode call inarch/arm/cpu/armv7/nonsec_virt.S.
What exactly do you mean by "masked off"? As in non-accessible, generates an abort? Where exactly have you traced that hang? What are the other CPUs doing when you do this? In short: a lot more details, please.
Quoted 8 lines
I notice that the hypervisor setup code was revised back in 2014 to support platforms with secure RAM, effectively replacing the early hvc 0
call with a late smc 0-based setup routine. Has the current hypervisor
implementation been tested on the original Versatile Express TC-2 board
since the setup code modification?
I did when I wrote that code. And still run my TC2 occasionally, though I haven't updated u-boot on this system since then (if not broken...). This code has been known to enable both KVM and Xen on a variety of VE-capable HW, so it is not completely broken (it may still have the odd bug though).
Quoted 8 lines
Is anyone else working on RK3288 hypervisor support? The datasheet claims virtualization extensions are supported, but right now that seems
quite dubious unless 1.) the GIC can be un-masked in normal mode and 2.)
the hang on HYP mode switch can be traced to an implementation fault in
u-boot.
Cortex-A12/A17 definitely has virtualization extensions (I ran KVM on a A12 FPGA a couple of years ago, without any issue). I'll try to have a look at your patches. Do you have an accessible git tree somewhere?
Thanks,
M.
Signature · 1 line
Fast, cheap, reliable. Pick two.
Hi Timothy,
Quoted 17 lines · Timothy Pearson
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1All,
I recently ported U-Boot over to the RK3288-based Veyron Speedy 4GB Chromebook in an attempt to gain KVM (hypervisor) support [1]. However, in addition to the GIC being completely masked off in non-secure mode by the AXI bus, the machine hangs immediately upon exiting the NS/HYP switch monitor mode call in
arch/arm/cpu/armv7/nonsec_virt.S.I notice that the hypervisor setup code was revised back in 2014 to support platforms with secure RAM, effectively replacing the early hvc 0 call with a late smc 0-based setup routine. Has the current hypervisor implementation been tested on the original Versatile Express TC-2 board since the setup code modification?
Quoted 5 lines
Is anyone else working on RK3288 hypervisor support? The datasheet claims virtualization extensions are supported, but right now that seems quite dubious unless 1.) the GIC can be un-masked in normal mode and 2.) the hang on HYP mode switch can be traced to an implementation fault in u-boot.
Not that I know of.
Quoted 6 lines
Thanks!
[1] Work-in-progress patches:
http://raptorengineering.com/u-boot/rk3288/patches/wip/
Quoted 6 lines
- --
Timothy Pearson
Raptor Engineering
+1 (415) 727-8645 (direct line)
+1 (512) 690-0200 (switchboard)
http://www.raptorengineeringinc.com
Regards,
Simon