]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/xive2: Add undelivered group interrupt to backlog
authorFrederic Barrat <fbarrat@linux.ibm.com>
Tue, 11 Mar 2025 01:51:21 +0000 (11:51 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:31 +0000 (22:43 +1000)
commit58fa4433e02a394872ff83c28edea174c43e6afb
treee2d07128d5c86a1030bea37a11671b548c567b3f
parent9cb7f6ebed60739ff6e5f09e8ce85c9602d33f2a
ppc/xive2: Add undelivered group interrupt to backlog

When a group interrupt cannot be delivered, we need to:
- increment the backlog counter for the group in the NVG table
  (if the END is configured to keep a backlog).
- start a broadcast operation to set the LSMFB field on matching CPUs
  which can't take the interrupt now because they're running at too
  high a priority.

[npiggin: squash in fixes from milesg]
[milesg: only load the NVP if the END is !ignore]
[milesg: always broadcast backlog, not only when there are precluded VPs]

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Kowal <kowal@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/intc/pnv_xive2.c
hw/intc/xive2.c
hw/ppc/pnv.c
include/hw/ppc/xive.h
include/hw/ppc/xive2.h