Rework i8259 and PC interrupt models
Status from this message: Thanks, applied all.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest23 patches 7 repliesApplied
- v122 patches 64 repliesSuperseded
Changes in v2 from the cover letter
- kept PIC irq state update after reset but clarified why this required and only valid here
- additional fix: Clear ELCR on reset
- included already posted updates of patch 22 and 23
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | pc: Drop useless test from isa_irq_handlerhw/ | +2 | 0 replies | |
| 2/23 | pc: Generalize ISA IRQs to GSIshw/ hw/ hw/ +2 more | +42 | 0 replies | |
| 3/23 | pc: Convert GSIState::i8259_irq into arrayhw/ hw/ | +4 | 0 replies | |
| 4/23 | pc: Fix and clean up PIC-to-APIC IRQ pathhw/ hw/ hw/ +1 more | +12 | 0 replies | |
| 5/23 | i8259: Remove premature inline function attributeshw/ | +3 | 0 replies | |
| 6/23 | i8259: Drop obsolete prototypeshw/ | +0 | 0 replies | |
| 7/23 | i8259: Move pic_set_irq1 after pic_update_irqhw/ | +29 | 0 replies | |
| 8/23 | i8239: Introduce per-PIC output interrupthw/ | +12 | 0 replies | |
| 9/23 | i8259: Do not update IRQ output after spurious pic_poll_readhw/ | +0 | 0 replies | |
| 10/23 | i8259: Reorder intack in pic_read_irqhw/ | +6 | 0 replies | |
| 11/23 | i8259: Update IRQ state after resethw/ | +1 | 0 replies | |
| 12/23 | i8259: Clear ELCR on resethw/ | +10 | 0 replies | |
| 13/23 | i8259: Switch to per-PIC IRQ updatehw/ | +21 | 0 replies | |
| 14/23 | i8259: Fix poll commandhw/ | +7 | 0 replies | |
| 15/23 | i8259: Clean up pic_ioport_readhw/ | +1 | 0 replies | |
| 16/23 | i8259: PREP: Replace pic_intack_read with pic_read_irqhw/ hw/ hw/ | +1 | 2 replies | |
| 17/23 | i8259: Replace PicState::pics_state with master flaghw/ | +9 | 0 replies | |
| 18/23 | i8259: Eliminate PicState2hw/ hw/ | +34 | 0 replies | |
| 19/23 | qdev: Add HEX8 propertyhw/ hw/ | +32 | 1 reply | |
| 20/23 | i8259: Convert to qdevhw/ | +100 | 0 replies | |
| 21/23 | i8259: Fix coding stylehw/ | +34 | 0 replies | |
| 22/23 | monitor: Restrict pic/irq_info to supporting targetshw/ hw/ hw/ +11 more | +33 | 2 replies | |
| 23/23 | i8259: Move to hw libraryMakefile.objs Makefile.target default-configs/ +9 more | +15 | 1 reply |
Reviews trailers per patch
2 of 23 patches have a Reviewed-by or Acked-by.
| Patch | Blue Swirl | Andreas Färber |
|---|---|---|
| 1/23 | ||
| 2/23 | ||
| 3/23 | ||
| 4/23 | ||
| 5/23 | ||
| 6/23 | ||
| 7/23 | ||
| 8/23 | ||
| 9/23 | ||
| 10/23 | ||
| 11/23 | ||
| 12/23 | ||
| 13/23 | ||
| 14/23 | ||
| 15/23 | ||
| 16/23 | T-b | |
| 17/23 | ||
| 18/23 | ||
| 19/23 | R-b | |
| 20/23 | ||
| 21/23 | ||
| 22/23 | A-b | |
| 23/23 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v2 00/23] Rework i8259 and PC interrupt models
Highlights of this series:
- generic i8259, now part of hwlib
- qdev conversion of i8259
- fix for i8259 poll mode (and removal of PREP hack)
The refactoring will also be important to instantiate i8259-kvm devices for in-kernel irqchip acceleration one day.
Changes in v2:
- kept PIC irq state update after reset but clarified why this required and only valid here
- additional fix: Clear ELCR on reset
- included already posted updates of patch 22 and 23
Jan Kiszka (23):
pc: Drop useless test from isa_irq_handler
pc: Generalize ISA IRQs to GSIs
pc: Convert GSIState::i8259_irq into array
pc: Fix and clean up PIC-to-APIC IRQ path
i8259: Remove premature inline function attributes
i8259: Drop obsolete prototypes
i8259: Move pic_set_irq1 after pic_update_irq
i8239: Introduce per-PIC output interrupt
i8259: Do not update IRQ output after spurious pic_poll_read
i8259: Reorder intack in pic_read_irq
i8259: Update IRQ state after reset
i8259: Clear ELCR on reset
i8259: Switch to per-PIC IRQ update
i8259: Fix poll command
i8259: Clean up pic_ioport_read
i8259: PREP: Replace pic_intack_read with pic_read_irq
i8259: Replace PicState::pics_state with master flag
i8259: Eliminate PicState2
qdev: Add HEX8 property
i8259: Convert to qdev
i8259: Fix coding style
monitor: Restrict pic/irq_info to supporting targets
i8259: Move to hw library
Makefile.objs | 1 + Makefile.target | 8 +- default-configs/alpha-softmmu.mak | 1 + default-configs/i386-softmmu.mak | 1 + default-configs/mips-softmmu.mak | 1 + default-configs/mips64-softmmu.mak | 1 + default-configs/mips64el-softmmu.mak | 1 + default-configs/mipsel-softmmu.mak | 1 + default-configs/ppc-softmmu.mak | 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/an5206.c | 10 - hw/apic.c | 4 + hw/arm_pic.c | 11 - hw/cris_pic_cpu.c | 6 - hw/etraxfs.h | 1 + hw/i8259.c | 397 ++++++++++++++++++---------------- hw/ioapic.h | 7 + hw/isa.h | 2 + hw/lm32_pic.c | 4 +- hw/lm32_pic.h | 3 + hw/microblaze_pic_cpu.c | 6 - hw/pc.c | 24 +-- hw/pc.h | 29 ++-- hw/pc_piix.c | 30 ++-- hw/ppc_prep.c | 2 +- hw/qdev-properties.c | 29 +++ hw/qdev.h | 3 + hw/s390-virtio.c | 11 - hw/shix.c | 11 - hw/sun4m.c | 4 +- hw/sun4m.h | 4 + hw/sun4u.c | 8 - hw/xtensa_pic.c | 10 - monitor.c | 21 ++ 36 files changed, 339 insertions(+), 317 deletions(-)
Signature · 1 line
1.7.3.4