Re: [RFC PATCH v5 18/22] hw/intc/arm_gicv3: Implement NMI interrupt prioirty

2024-03-04 Thread Jinjie Ruan via
On 2024/3/4 20:18, Jinjie Ruan wrote: > > > On 2024/3/1 7:50, Richard Henderson wrote: >> On 2/29/24 03:10, Jinjie Ruan via wrote: >>> If GICD_CTLR_DS bit is zero and the NMI is non-secure, the NMI prioirty >>> is higher than 0x80, otherwise it is higher than 0x0. And save NMI >>> super prioir

Re: [RFC PATCH v5 18/22] hw/intc/arm_gicv3: Implement NMI interrupt prioirty

2024-03-04 Thread Jinjie Ruan via
On 2024/3/1 7:50, Richard Henderson wrote: > On 2/29/24 03:10, Jinjie Ruan via wrote: >> If GICD_CTLR_DS bit is zero and the NMI is non-secure, the NMI prioirty >> is higher than 0x80, otherwise it is higher than 0x0. And save NMI >> super prioirty information in hppi.superprio to deliver NMI ex

Re: [RFC PATCH v5 18/22] hw/intc/arm_gicv3: Implement NMI interrupt prioirty

2024-03-04 Thread Jinjie Ruan via
On 2024/3/1 7:50, Richard Henderson wrote: > On 2/29/24 03:10, Jinjie Ruan via wrote: >> If GICD_CTLR_DS bit is zero and the NMI is non-secure, the NMI prioirty >> is higher than 0x80, otherwise it is higher than 0x0. And save NMI >> super prioirty information in hppi.superprio to deliver NMI ex

Re: [RFC PATCH v5 18/22] hw/intc/arm_gicv3: Implement NMI interrupt prioirty

2024-02-29 Thread Richard Henderson
On 2/29/24 03:10, Jinjie Ruan via wrote: If GICD_CTLR_DS bit is zero and the NMI is non-secure, the NMI prioirty is higher than 0x80, otherwise it is higher than 0x0. And save NMI super prioirty information in hppi.superprio to deliver NMI exception. Since both GICR and GICD can deliver NMI, it i

[RFC PATCH v5 18/22] hw/intc/arm_gicv3: Implement NMI interrupt prioirty

2024-02-29 Thread Jinjie Ruan via
If GICD_CTLR_DS bit is zero and the NMI is non-secure, the NMI prioirty is higher than 0x80, otherwise it is higher than 0x0. And save NMI super prioirty information in hppi.superprio to deliver NMI exception. Since both GICR and GICD can deliver NMI, it is both necessary to check whether the pendi