Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall: Thanks a lot! >non-secure *state* includes several non-secure CPU modes (usr, svc, >und, abt, irq, fiq, hyp). You can choose to switch to either of them >as you want, but if you want to boot Linux you should choose Hyp mode >so KVM will work, unless you are writing your own hypervisor or

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread Christoffer Dall
On 29 December 2013 21:15, wrote: > Hi, Dall: > Thanks for your quick response! >>It depends on the board. Which ARM doc are you referring to? > ARM Security Technology : Building a Secure System using TrustZone > Technology. > (PRD29-GENC-009492C) > Figure 5-2 in Chapter 5.2.1 Boot Sequence. >

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall: Thanks for your quick response! >It depends on the board. Which ARM doc are you referring to? ARM Security Technology : Building a Secure System using TrustZone Technology. (PRD29-GENC-009492C) Figure 5-2 in Chapter 5.2.1 Boot Sequence. Based on my understanding, U-boot is classfied as n

Re: [U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread Christoffer Dall
On 29 December 2013 19:10, wrote: > Hi, Dall: > I have a few questions about switching cpu's state from secure to > non-sec in uboot. > 1. I found do_nonsec_virt_switch() function had been integrated in > uboot_2014_01_RC2. > This function would switch cpu from secure state to non-sec, even >

[U-Boot] [PATCH 3/9] ARM: HYP/non-sec switch in bootm.c

2013-12-29 Thread TigerLiu
Hi, Dall: I have a few questions about switching cpu's state from secure to non-sec in uboot. 1. I found do_nonsec_virt_switch() function had been integrated in uboot_2014_01_RC2. This function would switch cpu from secure state to non-sec, even into hyp-state. So, my question is: If a