[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 8/9] hw/arm/vexpress: Don't set info->secure_boot
From: |
Luc Michel |
Subject: |
Re: [Qemu-arm] [PATCH 8/9] hw/arm/vexpress: Don't set info->secure_boot if CPU doesn't have EL3 |
Date: |
Wed, 22 Aug 2018 10:27:06 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 |
On 8/21/18 3:28 PM, Peter Maydell wrote:
> Don't request that the arm_load_kernel() code should boot in secure
> state if the CPU doesn't have a secure state. Currently this
> doesn't make a difference because the boot.c code only examines
> the secure_boot flag in code guarded by an ARM_FEATURE_EL3 check,
> but upcoming changes for supporting booting into Hyp mode will
> change that.
>
> Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Luc Michel <address@hidden>
> ---
> hw/arm/vexpress.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/hw/arm/vexpress.c b/hw/arm/vexpress.c
> index dc47ed84c20..3631f4de3a4 100644
> --- a/hw/arm/vexpress.c
> +++ b/hw/arm/vexpress.c
> @@ -705,8 +705,8 @@ static void vexpress_common_init(MachineState *machine)
> daughterboard->bootinfo.smp_bootreg_addr = map[VE_SYSREGS] + 0x30;
> daughterboard->bootinfo.gic_cpu_if_addr = daughterboard->gic_cpu_if_addr;
> daughterboard->bootinfo.modify_dtb = vexpress_modify_dtb;
> - /* Indicate that when booting Linux we should be in secure state */
> - daughterboard->bootinfo.secure_boot = true;
> + /* When booting Linux we should be in secure state if the CPU has one. */
> + daughterboard->bootinfo.secure_boot = vms->secure;
> arm_load_kernel(ARM_CPU(first_cpu), &daughterboard->bootinfo);
> }
>
>
signature.asc
Description: OpenPGP digital signature
- [Qemu-arm] [PATCH 0/9] arm: Wire up GICv2 virt support on A15/A7 boards, Peter Maydell, 2018/08/21
- [Qemu-arm] [PATCH 9/9] hw/arm/vexpress: Add "virtualization" property controlling presence of EL2, Peter Maydell, 2018/08/21
- [Qemu-arm] [PATCH 8/9] hw/arm/vexpress: Don't set info->secure_boot if CPU doesn't have EL3, Peter Maydell, 2018/08/21
- Re: [Qemu-arm] [PATCH 8/9] hw/arm/vexpress: Don't set info->secure_boot if CPU doesn't have EL3,
Luc Michel <=
- [Qemu-arm] [PATCH 7/9] hw/cpu/a15mpcore: If CPU has EL2, enable it on the GIC and wire it up, Peter Maydell, 2018/08/21
- [Qemu-arm] [PATCH 6/9] hw/arm/fsl-imx6ul: Connect VIRQ and VFIQ, Peter Maydell, 2018/08/21
- [Qemu-arm] [PATCH 5/9] hw/arm/fsl-imx6ul: Connect VIRQ and VFIQ, Peter Maydell, 2018/08/21
- [Qemu-arm] [PATCH 4/9] hw/arm/highbank: Connect VIRQ and VFIQ, Peter Maydell, 2018/08/21
- [Qemu-arm] [PATCH 3/9] hw/arm/vexpress: Connect VIRQ and VFIQ, Peter Maydell, 2018/08/21