]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive: Fix high prio group interrupt being preempted by low prio VP
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 May 2025 03:10:40 +0000 (13:10 +1000)
committerCédric Le Goater <clg@redhat.com>
Mon, 21 Jul 2025 06:03:52 +0000 (08:03 +0200)
commit46f5ee8885a521c56e60820bf35aba4e94e16cf7
tree124b4e2fcbbc17916f837c07991a331ec8f7e339
parentd16214ed2c57a31b5de7e2c115c65b831170a60e
ppc/xive: Fix high prio group interrupt being preempted by low prio VP

xive_tctx_pipr_present() as implemented with xive_tctx_pipr_update()
causes VP-directed (group==0) interrupt to be presented in PIPR and NSR
despite being a lower priority than the currently presented group
interrupt.

This must not happen. The IPB bit should record the low priority VP
interrupt, but PIPR and NSR must not present the lower priority
interrupt.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Glenn Miles <milesg@linux.ibm.com>
Reviewed-by: Michael Kowal <kowal@linux.ibm.com>
Tested-by: Gautam Menghani <gautam@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20250512031100.439842-32-npiggin@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/intc/xive.c