]> www.infradead.org Git - users/dwmw2/qemu.git/commit
pnv/xive: Update PIPR when updating CPPR
authorGlenn Miles <milesg@linux.ibm.com>
Fri, 13 Sep 2024 16:16:57 +0000 (11:16 -0500)
committerNicholas Piggin <npiggin@gmail.com>
Sun, 3 Nov 2024 23:14:48 +0000 (09:14 +1000)
commit415313931917dc217f013a2ee977a059ee36bb3f
tree97efdb5b7c28ac4a123fdf3024fbbb269191d4a1
parenta9bb09678a7487609769f1965a04d3a774810bda
pnv/xive: Update PIPR when updating CPPR

Current code was updating the PIPR inside the xive_tctx_accept() function
instead of the xive_tctx_set_cppr function, which is where the HW would
have it updated.

Moved the update to the xive_tctx_set_cppr function which required
additional support for pool interrupts.

Fixes: cdd4de68edb6 ("ppc/xive: notify the CPU when the interrupt priority is more privileged")
Signed-off-by: Glenn Miles <milesg@linux.vnet.ibm.com>
Signed-off-by: Michael Kowal <kowal@linux.ibm.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/xive.c