x86/irq: drop interrupt target cpumasks
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 23 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | x86/apic: remove cpu_mask_to_apicid hookxen/ xen/ xen/ +2 more | +2 | 2 replies | |
| 2/12 | x86/apic: remove vector_allocation_cpumask hookxen/ xen/ xen/ +3 more | +7 | 2 replies | |
| 3/12 | x86/irq: introduce local irq_descxen/ | +6 | 1 reply | |
| 4/12 | x86/irq: set accurate cpu_mask for high priority vectors used by external interruptsxen/ xen/ | +20 | 5 replies | |
| 5/12 | x86/io-apic: purge usage of logical modexen/ | +15 | 4 replies | |
| 6/12 | x86/i8259: redo workaround for AMD spurious PIC interruptsxen/ | +5 | 3 replies | |
| 7/12 | x86/io-apic: fix usage of setup_ioapic_dest()xen/ xen/ xen/ +1 more | +11 | 1 reply | |
| 8/12 | x86/irq: adjust bind_irq_vector() to take a single CPU as parameterxen/ xen/ xen/ +1 more | +13 | 1 reply | |
| 9/12 | x86/irq: convert cpumask parameter to integer in {,p}irq_set_affinity()xen/ xen/ xen/ +2 more | +9 | 1 reply | |
| 10/12 | x86/irq: convert irq_desc cpu_mask field to integerxen/ xen/ xen/ +9 more | +70 | 1 reply | |
| 11/12 | x86/irq: convert irq_desc old_cpu_mask field to integerxen/ xen/ | +35 | 1 reply | |
| 12/12 | x86/irq: convert irq_desc pending_mask field to integerxen/ xen/ | +6 | 1 reply |
Reviews trailers per patch
5 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich | Andrew Cooper |
|---|---|---|
| 1/12 | R-b | A-b |
| 2/12 | R-b | A-b |
| 3/12 | A-b | |
| 4/12 | R-b | |
| 5/12 | ||
| 6/12 | ||
| 7/12 | R-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.
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