Skip to content

Commit

Permalink
hw/intc/arm_gicv3_redist: Implement gicv3_redist_inv_vlpi()
Browse files Browse the repository at this point in the history
Implement the function gicv3_redist_inv_vlpi(), which was previously
left as a stub.  This is the function that does the work of the INV
command for a virtual interrupt.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220408141550.1271295-37-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Apr 22, 2022
1 parent e031346 commit 1b19ccf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hw/intc/arm_gicv3_redist.c
Expand Up @@ -1102,9 +1102,12 @@ void gicv3_redist_vinvall(GICv3CPUState *cs, uint64_t vptaddr)
void gicv3_redist_inv_vlpi(GICv3CPUState *cs, int irq, uint64_t vptaddr)
{
/*
* The redistributor handling for invalidating cached information
* about a VLPI will be added in a subsequent commit.
* The only cached information for LPIs we have is the HPPLPI.
* We could be cleverer about identifying when we don't need
* to do a full rescan of the pending table, but until we find
* this is a performance issue, just always recalculate.
*/
gicv3_redist_vinvall(cs, vptaddr);
}

void gicv3_redist_set_irq(GICv3CPUState *cs, int irq, int level)
Expand Down

0 comments on commit 1b19ccf

Please sign in to comment.