Skip to content

RFC hw/isa: Remove dependencies on ISA bus singleton

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11hw/isa: Explode pci_create_simple() callshw/i386/pc_piix.c hw/isa/piix4.c hw/mips/fuloong2e.c +1 more+9 -51 reply
2/11hw/ide: Add PCIIDEState::isa_bus linkhw/ide/piix.c hw/ide/via.c include/hw/ide/pci.h+20 -28 replies
3/11hw/ide/piix: Set the ISA-bus QOM linkhw/i386/pc_piix.c hw/ide/piix.c hw/isa/piix4.c+14 -30 replies
4/11hw/ide/via: Set the ISA-bus QOM linkhw/ide/via.c hw/mips/fuloong2e.c hw/ppc/pegasos2.c+13 -00 replies
5/11hw/isa: Extract isa_bus_get_irq() from isa_get_irq()hw/isa/isa-bus.c include/hw/isa/isa.h+8 -20 replies
6/11hw/ide: Replace isa_get_irq() by isa_bus_get_irq()hw/ide/piix.c hw/ide/via.c+3 -20 replies
7/11hw/isa: Simplify isa_get_irq()hw/isa/isa-bus.c+5 -10 replies
8/11hw/isa: Extract bus part from isa_register_portio_list()hw/isa/isa-bus.c include/hw/isa/isa.h+17 -40 replies
9/11hw/ide: Let ide_init_ioport() take an ISA bus argument instead of devicehw/ide/ioport.c hw/ide/isa.c hw/ide/piix.c +1 more+12 -90 replies
10/11hw/isa: Remove use of global isa bushw/isa/isa-bus.c+17 -61 reply
11/11hw/isa: Rename isabus singleton as 'g_isabus'hw/isa/isa-bus.c+5 -31 reply

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11
10/11R-b
11/11

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

Read the v1 thread

Cover letter [RFC PATCH 00/11] hw/isa: Remove dependencies on ISA bus singleton

Hi,

This series implements the suggestions from Markus analysis:
https://www.mail-archive.com/[email protected]/msg84090.html
on the ISA bus.

There is still work to do (remove global get_system_io?) but this is enough to convert a crash to an error message, and the changes are simple, so posting now as RFC.

TBC...

Philippe Mathieu-Daudé (11):
hw/isa: Explode pci_create_simple() calls
hw/ide: Add PCIIDEState::isa_bus link
hw/ide/piix: Set the ISA-bus QOM link
hw/ide/via: Set the ISA-bus QOM link
hw/isa: Extract isa_bus_get_irq() from isa_get_irq() hw/ide: Replace isa_get_irq() by isa_bus_get_irq() hw/isa: Simplify isa_get_irq()
hw/isa: Extract bus part from isa_register_portio_list() hw/ide: Let ide_init_ioport() take an ISA bus argument instead of
device
hw/isa: Remove use of global isa bus
hw/isa: Rename isabus singleton as 'g_isabus'

 include/hw/ide/internal.h |  3 +-
 include/hw/ide/pci.h      |  1 +
 include/hw/isa/isa.h      |  5 ++++
 hw/i386/pc_piix.c         |  7 +++--
 hw/ide/ioport.c           | 11 +++----
 hw/ide/isa.c              |  3 +-
 hw/ide/piix.c             | 22 +++++++++++---
 hw/ide/via.c              | 18 ++++++++++--
 hw/isa/isa-bus.c          | 61 +++++++++++++++++++++++++++++----------
 hw/isa/piix4.c            | 13 ++++++---
 hw/mips/fuloong2e.c       |  7 ++++-
 hw/ppc/pegasos2.c         |  7 ++++-
 12 files changed, 122 insertions(+), 36 deletions(-)
Signature · 1 line
2.26.3