Skip to content

hw/ide: Untangle ISA/PCI abuses of ide_init_ioport()

Philippe Mathieu-Daudé qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 33 repliesIn review
  2. v218 patches 12 repliesSuperseded
  3. v17 patches 9 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18hw/ide/piix: Expose output IRQ as properties for late object populationhw/ide/piix.c include/hw/ide/piix.h+16 -21 reply
2/18hw/ide/piix: Allow using PIIX3-IDE as standalone PCI functionhw/ide/piix.c+21 -01 reply
3/18hw/i386/pc_piix: Wire PIIX3 IDE ouput IRQs to ISA bus IRQs 14/15hw/i386/pc_piix.c+7 -16 replies
4/18hw/isa/piix4: Wire PIIX4 IDE ouput IRQs to ISA bus IRQs 14/15hw/isa/piix4.c+2 -01 reply
5/18hw/ide: Rename ISA specific ide_init_ioport -> ide_bus_init_ioport_isahw/ide/ioport.c hw/ide/isa.c hw/ide/piix.c +2 more+10 -51 reply
6/18hw/ide/piix: Ensure IDE output IRQs are wired at realizationhw/ide/piix.c+8 -51 reply
7/18hw/isa: Deprecate isa_get_irq() in favor of isa_bus_get_irq()hw/isa/isa-bus.c include/hw/isa/isa.h+5 -41 reply
8/18hw/ide: Introduce generic ide_init_ioport()hw/ide/ioport.c include/hw/ide/internal.h+12 -21 reply
9/18hw/ide/piix: Use generic ide_bus_init_ioport()hw/ide/piix.c+3 -80 replies
10/18hw/isa: Ensure isa_register_portio_list() do not get NULL ISA devicehw/isa/isa-bus.c+2 -11 reply
11/18hw/isa: Simplify isa_address_space[_io]()hw/isa/isa-bus.c+4 -101 reply
12/18hw/isa: Reduce 'isabus' singleton scope to isa_bus_new()hw/isa/isa-bus.c+2 -61 reply
13/18exec/ioport: Factor portio_list_register_flush_coalesced() outhw/display/qxl.c hw/display/vga.c include/exec/ioport.h +1 more+31 -131 reply
14/18exec/ioport: Factor portio_list_register() outhw/audio/adlib.c hw/display/vga.c hw/dma/i82374.c +5 more+33 -311 reply
15/18hw/southbridge/piix: Use OBJECT_DECLARE_SIMPLE_TYPE() macroinclude/hw/southbridge/piix.h+3 -51 reply
16/18hw/isa/piix: Batch register QOM types using DEFINE_TYPES() macrohw/isa/piix3.c+22 -311 reply
17/18hw/isa/piix: Unify QOM type name of PIIX ISA functionhw/i386/pc_piix.c hw/isa/piix3.c hw/isa/piix4.c +2 more+23 -241 reply
18/18hw/isa/piix: Unify PIIX-ISA QOM type names using qdev aliasesinclude/hw/southbridge/piix.h softmmu/qdev-monitor.c+6 -31 reply

Reviews trailers per patch

10 of 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMark Cave-AylandRichard HendersonBernhard BeschowMichael S. Tsirkin
SeriesA-b R-b
1/18
2/18
3/18
4/18
5/18R-b
6/18
7/18R-b
8/18Inspired-by R-b
9/18Inspired-by
10/18R-b
11/18R-b
12/18R-b
13/18R-b
14/18R-b R-b
15/18R-b
16/18R-b
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/18] hw/ide: Untangle ISA/PCI abuses of ide_init_ioport()

Since v2: rebased

I'm posting this series as it to not block Bernhard's PIIX cleanup work. I don't have code change planned, but eventually reword / improve commit descriptions.

Tested commit after commit to be sure it is bisectable. Sadly this was before Zoltan & Thomas report a problem with commit bb98e0f59c ("hw/isa/vt82c686: Remove intermediate IRQ forwarder").

Background thread:
https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (18):
hw/ide/piix: Expose output IRQ as properties for late object
population
hw/ide/piix: Allow using PIIX3-IDE as standalone PCI function hw/i386/pc_piix: Wire PIIX3 IDE ouput IRQs to ISA bus IRQs 14/15 hw/isa/piix4: Wire PIIX4 IDE ouput IRQs to ISA bus IRQs 14/15 hw/ide: Rename ISA specific ide_init_ioport -> ide_bus_init_ioport_isa hw/ide/piix: Ensure IDE output IRQs are wired at realization hw/isa: Deprecate isa_get_irq() in favor of isa_bus_get_irq() hw/ide: Introduce generic ide_init_ioport()
hw/ide/piix: Use generic ide_bus_init_ioport()
hw/isa: Ensure isa_register_portio_list() do not get NULL ISA device hw/isa: Simplify isa_address_space[_io]()
hw/isa: Reduce 'isabus' singleton scope to isa_bus_new() exec/ioport: Factor portio_list_register_flush_coalesced() out exec/ioport: Factor portio_list_register() out hw/southbridge/piix: Use OBJECT_DECLARE_SIMPLE_TYPE() macro hw/isa/piix: Batch register QOM types using DEFINE_TYPES() macro hw/isa/piix: Unify QOM type name of PIIX ISA function hw/isa/piix: Unify PIIX-ISA QOM type names using qdev aliases

 hw/audio/adlib.c              |  4 +--
 hw/display/qxl.c              |  7 ++--
 hw/display/vga.c              |  9 +++--
 hw/dma/i82374.c               |  7 ++--
 hw/i386/pc_piix.c             | 13 +++++---
 hw/ide/ioport.c               | 15 +++++++--
 hw/ide/isa.c                  |  2 +-
 hw/ide/piix.c                 | 54 +++++++++++++++++++++++-------
 hw/isa/isa-bus.c              | 36 ++++++++------------
 hw/isa/piix3.c                | 63 +++++++++++++++--------------------
 hw/isa/piix4.c                | 12 ++++---
 hw/mips/malta.c               |  2 +-
 hw/watchdog/wdt_ib700.c       |  4 +--
 include/exec/ioport.h         | 15 +++++----
 include/hw/ide/internal.h     |  3 +-
 include/hw/ide/isa.h          |  3 ++
 include/hw/ide/piix.h         |  4 +++
 include/hw/isa/isa.h          |  3 +-
 include/hw/southbridge/piix.h | 14 ++++----
 softmmu/ioport.c              | 48 +++++++++++++++++++-------
 softmmu/qdev-monitor.c        |  3 ++
 21 files changed, 190 insertions(+), 131 deletions(-)
Signature · 1 line
2.38.1