qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 16/41] hw/intc/arm_gicv3_its: Implement VMOVP


From: Richard Henderson
Subject: Re: [PATCH 16/41] hw/intc/arm_gicv3_its: Implement VMOVP
Date: Sat, 9 Apr 2022 11:13:05 -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:
Implement the GICv4 VMOVP command, which updates an entry in the vPE
table to change its rdbase field. This command is unique in the ITS
command set because its effects must be propagated to all the other
ITSes connected to the same GIC as the ITS which executes the VMOVP
command.

The GICv4 spec allows two implementation choices for handling the
propagation to other ITSes:
  * If GITS_TYPER.VMOVP is 1, the guest only needs to issue the command
    on one ITS, and the implementation handles the propagation to
    all ITSes
  * If GITS_TYPER.VMOVP is 0, the guest must issue the command on
    every ITS, and arrange for the ITSes to synchronize the updates
    with each other by setting ITSList and Sequence Number fields
    in the command packets

We choose the GITS_TYPER.VMOVP = 1 approach, and synchronously
execute the update on every ITS.

For GICv4.1 this command has extra fields in the command packet and
additional behaviour.  We define the 4.1-only fields with the FIELD
macro, but only implement the GICv4.0 version of the command.

Note that we don't update the reported GITS_TYPER value here;
we'll do that later in a commit which updates all the reported
feature bit and ID register values for GICv4.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  hw/intc/gicv3_internal.h | 18 ++++++++++
  hw/intc/arm_gicv3_its.c  | 75 ++++++++++++++++++++++++++++++++++++++++
  hw/intc/trace-events     |  1 +
  3 files changed, 94 insertions(+)

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

r~



reply via email to

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