Skip to content

x86/irq: drop interrupt target cpumasks

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12x86/apic: remove cpu_mask_to_apicid hookxen/arch/x86/genapic/bigsmp.c xen/arch/x86/genapic/default.c xen/arch/x86/genapic/delivery.c +2 more+2 -172 replies
2/12x86/apic: remove vector_allocation_cpumask hookxen/arch/x86/genapic/bigsmp.c xen/arch/x86/genapic/default.c xen/arch/x86/genapic/delivery.c +3 more+7 -302 replies
3/12x86/irq: introduce local irq_descxen/arch/x86/smpboot.c+6 -21 reply
4/12x86/irq: set accurate cpu_mask for high priority vectors used by external interruptsxen/arch/x86/irq.c xen/arch/x86/smpboot.c+20 -75 replies
5/12x86/io-apic: purge usage of logical modexen/arch/x86/io_apic.c+15 -124 replies
6/12x86/i8259: redo workaround for AMD spurious PIC interruptsxen/arch/x86/i8259.c+5 -123 replies
7/12x86/io-apic: fix usage of setup_ioapic_dest()xen/arch/x86/include/asm/irq.h xen/arch/x86/io_apic.c xen/arch/x86/platform_hypercall.c +1 more+11 -91 reply
8/12x86/irq: adjust bind_irq_vector() to take a single CPU as parameterxen/arch/x86/hpet.c xen/arch/x86/include/asm/irq.h xen/arch/x86/io_apic.c +1 more+13 -161 reply
9/12x86/irq: convert cpumask parameter to integer in {,p}irq_set_affinity()xen/arch/x86/hvm/hvm.c xen/arch/x86/include/asm/irq.h xen/arch/x86/irq.c +2 more+9 -121 reply
10/12x86/irq: convert irq_desc cpu_mask field to integerxen/arch/x86/hpet.c xen/arch/x86/i8259.c xen/arch/x86/include/asm/irq.h +9 more+70 -1031 reply
11/12x86/irq: convert irq_desc old_cpu_mask field to integerxen/arch/x86/include/asm/irq.h xen/arch/x86/irq.c+35 -591 reply
12/12x86/irq: convert irq_desc pending_mask field to integerxen/arch/x86/include/asm/irq.h xen/arch/x86/irq.c+6 -101 reply

Reviews trailers per patch

5 of 12 patches have a Reviewed-by or Acked-by.

PatchJan BeulichAndrew Cooper
1/12R-b A-b
2/12R-b A-b
3/12A-b
4/12R-b
5/12
6/12
7/12R-b
8/12
9/12
10/12
11/12
12/12

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

Read the v1 thread

Cover letter [PATCH 00/12] x86/irq: drop interrupt target cpumasks

Hello,

After the adjustments that dropped logical delivery mode for all external interrupts the Xen internal interrupt descriptors no longer require a cpumask to store the possible targets of the interrupt. Using physical delivery mode only allows a single CPU to be the target of the interrupt, and hence the field can be converted into an unsigned int.

The series contain a bit of cleanup and code adjustments ahead of the removal of the cpumasks that's done in the last 3 patches.

A couple of notes from the series:

* It's possible that further simplifications can be applied to fixup_irqs() (and other logic) after dropping the cpumasks. I haven't looked closely enough, but in any case that would be a followup change(s) on top of this series.

* Current code seems to confuse interrupt affinity (possible interrupt destinations) with the current target of the interrupt. For example irq_set_affinity() doesn't set the interrupt affinity, but rather migrates the interrupt from one target CPU to another.

Thanks, Roger.

Roger Pau Monne (12):
x86/apic: remove cpu_mask_to_apicid hook
x86/apic: remove vector_allocation_cpumask hook
x86/irq: introduce local irq_desc
x86/irq: set accurate cpu_mask for high priority vectors used by
external interrupts
x86/io-apic: purge usage of logical mode
x86/i8259: redo workaround for AMD spurious PIC interrupts x86/io-apic: fix usage of setup_ioapic_dest()
x86/irq: adjust bind_irq_vector() to take a single CPU as parameter x86/irq: convert cpumask parameter to integer in

    {,p}irq_set_affinity()

x86/irq: convert irq_desc cpu_mask field to integer x86/irq: convert irq_desc old_cpu_mask field to integer x86/irq: convert irq_desc pending_mask field to integer

 xen/arch/x86/genapic/bigsmp.c            |   2 -
 xen/arch/x86/genapic/default.c           |   2 -
 xen/arch/x86/genapic/delivery.c          |   7 +-
 xen/arch/x86/genapic/x2apic.c            |   9 -
 xen/arch/x86/hpet.c                      |  11 +-
 xen/arch/x86/hvm/hvm.c                   |   2 +-
 xen/arch/x86/i8259.c                     |  17 +-
 xen/arch/x86/include/asm/genapic.h       |  17 +-
 xen/arch/x86/include/asm/irq.h           |  22 +-
 xen/arch/x86/include/asm/msi.h           |   3 +-
 xen/arch/x86/io_apic.c                   |  61 +++---
 xen/arch/x86/irq.c                       | 249 ++++++++++-------------
 xen/arch/x86/msi.c                       |  17 +-
 xen/arch/x86/platform_hypercall.c        |   2 +-
 xen/arch/x86/smpboot.c                   |  12 +-
 xen/common/cpu.c                         |   1 +
 xen/common/event_channel.c               |   6 +-
 xen/drivers/passthrough/amd/iommu_init.c |   2 +-
 xen/drivers/passthrough/vtd/iommu.c      |   2 +-
 xen/include/xen/cpumask.h                |   1 +
 xen/include/xen/irq.h                    |   3 +-
 21 files changed, 179 insertions(+), 269 deletions(-)
Signature · 1 line
2.51.0