diff options
| author | Glenn Miles <milesg@linux.ibm.com> | 2025-05-12 13:10:17 +1000 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-07-21 08:03:52 +0200 |
| commit | a1577527e212efd27a8ceefbd95321c306abf739 (patch) | |
| tree | 95a59f5d11a76394ea95d8754d575bd1e773524f /hw/intc/xive2.c | |
| parent | 576830428eea6ebfc85792851a343214b834e401 (diff) | |
| download | focaccia-qemu-a1577527e212efd27a8ceefbd95321c306abf739.tar.gz focaccia-qemu-a1577527e212efd27a8ceefbd95321c306abf739.zip | |
ppc/xive2: Use fair irq target search algorithm
The current xive algorithm for finding a matching group vCPU target always uses the first vCPU found. And, since it always starts the search with thread 0 of a core, thread 0 is almost always used to handle group interrupts. This can lead to additional interrupt latency and poor performance for interrupt intensive work loads. Changing this to use a simple round-robin algorithm for deciding which thread number to use when starting a search, which leads to a more distributed use of threads for handling group interrupts. [npiggin: Also round-robin among threads, not just cores] Signed-off-by: Glenn Miles <milesg@linux.ibm.com> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Glenn Miles <milesg@linux.ibm.com> Reviewed-by: Michael Kowal <kowal@linux.ibm.com> Reviewed-by: Caleb Schlossin <calebs@linux.ibm.com> Tested-by: Gautam Menghani <gautam@linux.ibm.com> Link: https://lore.kernel.org/qemu-devel/20250512031100.439842-9-npiggin@gmail.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/intc/xive2.c')
0 files changed, 0 insertions, 0 deletions