Skip to content

spapr: reduce the number of IRQ

Cédric Le Goater qemu-devel 1 version Applied

Status from this message: Applied to ppc-for-4.2, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesApplied

Changes in v2 from the cover letter

- split the patch
- removed useless 'reset_all' machine flag which supposed to preserve migration compatibility

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2spapr/irq: Introduce an ics_irq_free() helperhw/ppc/spapr_irq.c include/hw/ppc/xics.h+8 -62 replies
2/2spapr/irq: Only claim VALID interrupts at the KVM levelhw/intc/spapr_xive_kvm.c hw/intc/xics_kvm.c+34 -33 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGreg Kurz
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] spapr: reduce the number of IRQ

Hello,

A typical pseries VM with 16 vCPUs, one disk, one network adapater uses less than 100 interrupts but the whole IRQ number space of the QEMU machine is allocated at reset time and it is 8K wide. This is wasting a considerable amount of interrupt numbers in the global IRQ space which has 1M interrupts per socket on a POWER9.

To optimise the HW resources, only request at the KVM level interrupts which have been claimed by the guest. This will help to increase the maximum number of VMs per system and also help supporting nested guests using the XIVE interrupt mode.

Thanks,

C.

Changes since v1:

- split the patch
- removed useless 'reset_all' machine flag which supposed to preserve migration compatibility

Cédric Le Goater (2):
spapr/irq: Introduce an ics_irq_free() helper spapr/irq: Only claim VALID interrupts at the KVM level

 include/hw/ppc/xics.h    |  5 +++++
 hw/intc/spapr_xive_kvm.c | 29 ++++++++++++++++++++++++++---
 hw/intc/xics_kvm.c       |  8 ++++++++
 hw/ppc/spapr_irq.c       |  9 +++------
 4 files changed, 42 insertions(+), 9 deletions(-)
Signature · 1 line
2.21.0