mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/intc/arm_gicv3_its: Implement INV command properly
We were previously implementing INV (like INVALL) to just blow away cached highest-priority-pending-LPI information on all connected redistributors. For GICv4.0, this isn't going to be sufficient, because the LPI we are invalidating cached information for might be either physical or virtual, and the required action is different for those two cases. So we need to do the full process of looking up the ITE from the devid and eventid. This also means we can do the error checks that the spec lists for this command. Split out INV handling into a process_inv() function like our other command-processing functions. For the moment, stick to handling only physical LPIs; we will add the vLPI parts later. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220408141550.1271295-19-peter.maydell@linaro.org
This commit is contained in:
parent
f76ba95a03
commit
a686e85d2b
4 changed files with 74 additions and 2 deletions
|
@ -373,6 +373,10 @@ FIELD(MOVI_0, DEVICEID, 32, 32)
|
|||
FIELD(MOVI_1, EVENTID, 0, 32)
|
||||
FIELD(MOVI_2, ICID, 0, 16)
|
||||
|
||||
/* INV command fields */
|
||||
FIELD(INV_0, DEVICEID, 32, 32)
|
||||
FIELD(INV_1, EVENTID, 0, 32)
|
||||
|
||||
/* VMAPI, VMAPTI command fields */
|
||||
FIELD(VMAPTI_0, DEVICEID, 32, 32)
|
||||
FIELD(VMAPTI_1, EVENTID, 0, 32)
|
||||
|
@ -573,6 +577,14 @@ void gicv3_redist_update_lpi(GICv3CPUState *cs);
|
|||
* an incoming migration has loaded new state.
|
||||
*/
|
||||
void gicv3_redist_update_lpi_only(GICv3CPUState *cs);
|
||||
/**
|
||||
* gicv3_redist_inv_lpi:
|
||||
* @cs: GICv3CPUState
|
||||
* @irq: LPI to invalidate cached information for
|
||||
*
|
||||
* Forget or update any cached information associated with this LPI.
|
||||
*/
|
||||
void gicv3_redist_inv_lpi(GICv3CPUState *cs, int irq);
|
||||
/**
|
||||
* gicv3_redist_mov_lpi:
|
||||
* @src: source redistributor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue