qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 15/41] hw/intc/arm_gicv3: Keep pointers to every connected IT


From: Richard Henderson
Subject: Re: [PATCH 15/41] hw/intc/arm_gicv3: Keep pointers to every connected ITS
Date: Sat, 9 Apr 2022 11:06:46 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

On 4/8/22 07:15, Peter Maydell wrote:
The GICv4 ITS VMOVP command's semantics require it to perform the
operation on every ITS connected to the same GIC that the ITS that
received the command is attached to.  This means that the GIC object
needs to keep a pointer to every ITS that is connected to it
(previously it was sufficient for the ITS to have a pointer to its
GIC).

Add a glib ptrarray to the GICv3 object which holds pointers to every
connected ITS, and make the ITS add itself to the array for the GIC
it is connected to when it is realized.

Note that currently all QEMU machine types with an ITS have exactly
one ITS in the system, so typically the length of this ptrarray will
be 1.  Multiple ITSes are typically used to improve performance on
real hardware, so we wouldn't need to have more than one unless we
were modelling a real machine type that had multile ITSes.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  hw/intc/gicv3_internal.h           | 9 +++++++++
  include/hw/intc/arm_gicv3_common.h | 2 ++
  hw/intc/arm_gicv3_common.c         | 2 ++
  hw/intc/arm_gicv3_its.c            | 2 ++
  hw/intc/arm_gicv3_its_kvm.c        | 2 ++
  5 files changed, 17 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]