[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 00/17] arm_gic: Add security and grouping sup
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v4 00/17] arm_gic: Add security and grouping support |
Date: |
Tue, 5 May 2015 10:21:31 +0100 |
On 5 May 2015 at 03:08, Edgar E. Iglesias <address@hidden> wrote:
> On Fri, May 01, 2015 at 06:50:26PM +0100, Peter Maydell wrote:
>> This patch series adds support for GICv1 and GICv2 security
>> extensions, as well as support for GIC interrupt grouping on GICv2.
>
> A question. Once we enable the the security extensions on the GICs,
> do you have any suggestions on howto best handle direct boots into
> NS EL2/1 (Linux)?
>
> The GIC resets to all interrupts configured for Group0 and Linux running
> in NS mode cannot change that so we need some kind of boot-loader
> code or magic to do what firmware would have been expected to do
> at boot time (switch some irqs to NS).
This is what I had in mind with the bit about:
>> * if boot.c is starting the CPUs directly in NonSecure
>> mode (because we're booting a kernel directly rather than
>> starting firmware, and arm_boot_info::secure_boot is false)
>> then it must also manually configure the GIC distributor
>> to put all interrupts into Group1. This is boot.c having
>> to do a firmware configuration job since it's effectively
>> acting as lightweight builtin firmware.
I hadn't made up my mind whether this was easier to do via
boot.c writing a bunch of values to GICD registers or by
having the GIC provide a function/method to call to do the job.
-- PMM
- [Qemu-devel] [PATCH v4 13/17] hw/intc/arm_gic: Change behavior of IAR writes, (continued)
- [Qemu-devel] [PATCH v4 13/17] hw/intc/arm_gic: Change behavior of IAR writes, Peter Maydell, 2015/05/01
- [Qemu-devel] [PATCH v4 04/17] hw/intc/arm_gic: Add Interrupt Group Registers, Peter Maydell, 2015/05/01
- [Qemu-devel] [PATCH v4 05/17] hw/intc/arm_gic_kvm.c: Save and restore GICD_IGROUPRn state, Peter Maydell, 2015/05/01
- [Qemu-devel] [PATCH v4 12/17] hw/intc/arm_gic: Change behavior of EOIR writes, Peter Maydell, 2015/05/01
- [Qemu-devel] [PATCH v4 07/17] hw/intc/arm_gic: Make ICCBPR/GICC_BPR banked, Peter Maydell, 2015/05/01
- Re: [Qemu-devel] [PATCH v4 00/17] arm_gic: Add security and grouping support, Edgar E. Iglesias, 2015/05/04
- Re: [Qemu-devel] [PATCH v4 00/17] arm_gic: Add security and grouping support,
Peter Maydell <=