[PATCH v10 17/23] hw/intc/arm_gicv3: Add NMI handling CPU interface registers

2024-03-25 Thread Jinjie Ruan via
Add the NMIAR CPU interface registers which deal with acknowledging NMI. When introduce NMI interrupt, there are some updates to the semantics for the register ICC_IAR1_EL1 and ICC_HPPIR1_EL1. For ICC_IAR1_EL1 register, it should return 1022 if the intid has non-maskable property. And for ICC_NMIA

Re: [PATCH v10 17/23] hw/intc/arm_gicv3: Add NMI handling CPU interface registers

2024-03-28 Thread Peter Maydell
On Mon, 25 Mar 2024 at 08:53, Jinjie Ruan wrote: > > Add the NMIAR CPU interface registers which deal with acknowledging NMI. > > When introduce NMI interrupt, there are some updates to the semantics for the > register ICC_IAR1_EL1 and ICC_HPPIR1_EL1. For ICC_IAR1_EL1 register, it > should return

Re: [PATCH v10 17/23] hw/intc/arm_gicv3: Add NMI handling CPU interface registers

2024-03-29 Thread Jinjie Ruan via
On 2024/3/28 22:50, Peter Maydell wrote: > On Mon, 25 Mar 2024 at 08:53, Jinjie Ruan wrote: >> >> Add the NMIAR CPU interface registers which deal with acknowledging NMI. >> >> When introduce NMI interrupt, there are some updates to the semantics for the >> register ICC_IAR1_EL1 and ICC_HPPIR1_

Re: [PATCH v10 17/23] hw/intc/arm_gicv3: Add NMI handling CPU interface registers

2024-03-30 Thread Peter Maydell
On Sat, 30 Mar 2024 at 02:44, Jinjie Ruan via wrote: > > > > On 2024/3/28 22:50, Peter Maydell wrote: > > The NMI bit also exists only in the AP1R0 bit, not in every AP > > register. So you can check it before the for() loop, something like this: > > > > if (cs->gic->nmi_support) { > >