Skip to content

another SysBusDevice::init to Device::realize cleanup

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 4 repliesIn review
  2. v115 patches 29 repliesSuperseded

Changes in v2 from the cover letter

- let the empty_slot
- sh4_pci and bonito use DeviceState::realize instead of PCIDevice::realize
- reword niagara-iob commit message

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12trace-events: Fix copy/paste typohw/timer/trace-events+1 -10 replies
2/12hw/timer/sun4v-rtc: Convert from DPRINTF() macro to trace eventshw/timer/sun4v-rtc.c hw/timer/trace-events+7 -100 replies
3/12hw/timer/sun4v-rtc: Use DeviceState::realize rather than SysBusDevice::inithw/timer/sun4v-rtc.c+5 -50 replies
4/12hw/ssi/xilinx_spi: Use DeviceState::realize rather than SysBusDevice::inithw/ssi/xilinx_spi.c+3 -60 replies
5/12hw/sh4/sh_pci: Use DeviceState::realize rather than SysBusDevice::inithw/sh4/sh_pci.c+9 -111 reply
6/12hw/pci-host/bonito: Use DeviceState::realize rather than SysBusDevice::inithw/pci-host/bonito.c+3 -61 reply
7/12hw/mips/gt64xxx_pci: Convert gt64120_reset() function into Device reset methodhw/mips/gt64xxx_pci.c+3 -140 replies
8/12hw/mips/gt64xxx_pci: Mark as bridge devicehw/mips/gt64xxx_pci.c+1 -00 replies
9/12hw/sparc64/niagara: Model the I/O Bridge with the 'unimplemented_device'default-configs/sparc64-softmmu.mak hw/sparc64/niagara.c+2 -30 replies
10/12hw/alpha/typhoon: Remove unuseful codehw/alpha/typhoon.c+0 -130 replies
11/12hw/hppa/dino: Remove unuseful codehw/hppa/dino.c+0 -70 replies
12/12hw/mips/malta: Remove unuseful codehw/mips/mips_malta.c+0 -130 replies

Reviews trailers per patch

All 12 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellCédric Le GoaterArtyom TarasenkoThomas Huth
1/12R-b R-b
2/12R-b R-b
3/12R-b R-b
4/12R-b R-b
5/12R-b
6/12R-b
7/12R-b R-b
8/12R-b R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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 v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/12] another SysBusDevice::init to Device::realize cleanup

Peter suggested [1] another crusade for this merge window, then Cédric jumped on his horse [2]. My turn on my dromedary.

since v1:
- let the empty_slot
- sh4_pci and bonito use DeviceState::realize instead of PCIDevice::realize
- reword niagara-iob commit message

v1: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg00220.html
- convert few devices to DeviceState::realize,
- kill the empty_slot device,
- remove unuseful class_init() code [RFC, do we want to keep this?]
- few other minor fixes catched while editing

Regards,

Phil.

[1] https://lists.gnu.org/archive/html/qemu-devel/2018-09/msg03605.html
[2] https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg00001.html

001/12:[----] [--] 'trace-events: Fix copy/paste typo'
002/12:[----] [--] 'hw/timer/sun4v-rtc: Convert from DPRINTF() macro to trace events' 003/12:[----] [--] 'hw/timer/sun4v-rtc: Use DeviceState::realize rather than SysBusDevice::init' 004/12:[----] [--] 'hw/ssi/xilinx_spi: Use DeviceState::realize rather than SysBusDevice::init' 005/12:[0006] [FC] 'hw/sh4/sh_pci: Use DeviceState::realize rather than SysBusDevice::init' 006/12:[0006] [FC] 'hw/pci-host/bonito: Use DeviceState::realize rather than SysBusDevice::init' 007/12:[----] [--] 'hw/mips/gt64xxx_pci: Convert gt64120_reset() function into Device reset method' 008/12:[----] [--] 'hw/mips/gt64xxx_pci: Mark as bridge device'
009/12:[----] [--] 'hw/sparc64/niagara: Model the I/O Bridge with the 'unimplemented_device'' 010/12:[----] [--] 'hw/alpha/typhoon: Remove unuseful code'
011/12:[----] [--] 'hw/hppa/dino: Remove unuseful code'
012/12:[----] [--] 'hw/mips/malta: Remove unuseful code'

Philippe Mathieu-Daudé (12):
trace-events: Fix copy/paste typo
hw/timer/sun4v-rtc: Convert from DPRINTF() macro to trace events hw/timer/sun4v-rtc: Use DeviceState::realize rather than
SysBusDevice::init
hw/ssi/xilinx_spi: Use DeviceState::realize rather than
SysBusDevice::init
hw/sh4/sh_pci: Use DeviceState::realize rather than SysBusDevice::init hw/pci-host/bonito: Use DeviceState::realize rather than
SysBusDevice::init
hw/mips/gt64xxx_pci: Convert gt64120_reset() function into Device
reset method
hw/mips/gt64xxx_pci: Mark as bridge device hw/sparc64/niagara: Model the I/O Bridge with the
'unimplemented_device'
hw/alpha/typhoon: Remove unuseful code
hw/hppa/dino: Remove unuseful code
hw/mips/malta: Remove unuseful code

 default-configs/sparc64-softmmu.mak |  1 -
 hw/alpha/typhoon.c                  | 13 -------------
 hw/hppa/dino.c                      |  7 -------
 hw/mips/gt64xxx_pci.c               | 18 ++++--------------
 hw/mips/mips_malta.c                | 13 -------------
 hw/pci-host/bonito.c                |  9 +++------
 hw/sh4/sh_pci.c                     | 20 +++++++++-----------
 hw/sparc64/niagara.c                |  4 ++--
 hw/ssi/xilinx_spi.c                 |  9 +++------
 hw/timer/sun4v-rtc.c                | 23 ++++++++---------------
 hw/timer/trace-events               |  6 +++++-
 11 files changed, 34 insertions(+), 89 deletions(-)
Signature · 1 line
2.19.0