Skip to content

hw/qdev: Housekeeping around qdev_get_parent_bus()

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 Latest9 patches 6 repliesIn review
  2. v14 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hw/qdev: Constify DeviceState* argument of qdev_get_parent_bus()hw/core/qdev.c include/hw/qdev-core.h+2 -20 replies
2/9hw/audio: Replace dev->parent_bus by qdev_get_parent_bus(dev)hw/audio/intel-hda.c+5 -50 replies
3/9hw/block: Replace dev->parent_bus by qdev_get_parent_bus(dev)hw/block/fdc.c hw/block/swim.c hw/ide/qdev.c +2 more+15 -150 replies
4/9hw/net: Replace dev->parent_bus by qdev_get_parent_bus(dev)hw/net/virtio-net.c+1 -11 reply
5/9hw/pci: Replace dev->parent_bus by qdev_get_parent_bus(dev)hw/pci-bridge/pci_expander_bridge.c+1 -11 reply
6/9hw/ppc: Replace dev->parent_bus by qdev_get_parent_bus(dev)hw/ppc/spapr_vio.c+2 -21 reply
7/9hw/usb: Replace dev->parent_bus by qdev_get_parent_bus(dev)hw/usb/bus.c hw/usb/desc.c hw/usb/dev-smartcard-reader.c +1 more+11 -110 replies
8/9hw: Use qdev_get_parent_bus() in qdev_get_own_fw_dev_path_from_handler()hw/core/qdev-fw.c include/hw/qdev-core.h softmmu/bootdevice.c+7 -60 replies
9/9qdev-monitor: Use qdev_get_parent_bus() in bus_print_dev()softmmu/qdev-monitor.c+3 -31 reply

Reviews trailers per patch

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

PatchMarkus ArmbrusterCédric Le GoaterMichael S. Tsirkin
SeriesR-b
1/9
2/9
3/9
4/9A-b
5/9A-b
6/9R-b
7/9
8/9
9/9R-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 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/9] hw/qdev: Housekeeping around qdev_get_parent_bus()

v2: Convert more qdev_get_parent_bus()

DeviceState::parent_bus is an internal field and should be accessed by the qdev_get_parent_bus() helper. Replace most uses.

Philippe Mathieu-Daudé (9):
hw/qdev: Constify DeviceState* argument of qdev_get_parent_bus() hw/audio: Replace dev->parent_bus by qdev_get_parent_bus(dev) hw/block: Replace dev->parent_bus by qdev_get_parent_bus(dev) hw/net: Replace dev->parent_bus by qdev_get_parent_bus(dev) hw/pci: Replace dev->parent_bus by qdev_get_parent_bus(dev) hw/ppc: Replace dev->parent_bus by qdev_get_parent_bus(dev) hw/usb: Replace dev->parent_bus by qdev_get_parent_bus(dev)
hw: Use qdev_get_parent_bus() in
qdev_get_own_fw_dev_path_from_handler()
qdev-monitor: Use qdev_get_parent_bus() in bus_print_dev()

 hw/audio/intel-hda.c                | 10 +++++-----
 hw/block/fdc.c                      |  2 +-
 hw/block/swim.c                     |  2 +-
 hw/core/qdev-fw.c                   |  9 +++++----
 hw/core/qdev.c                      |  2 +-
 hw/ide/qdev.c                       |  6 +++---
 hw/net/virtio-net.c                 |  2 +-
 hw/pci-bridge/pci_expander_bridge.c |  2 +-
 hw/ppc/spapr_vio.c                  |  4 ++--
 hw/scsi/scsi-bus.c                  | 18 +++++++++---------
 hw/usb/bus.c                        |  2 +-
 hw/usb/desc.c                       |  2 +-
 hw/usb/dev-smartcard-reader.c       | 16 ++++++++--------
 include/hw/qdev-core.h              |  4 ++--
 include/hw/scsi/scsi.h              |  2 +-
 include/hw/usb.h                    |  2 +-
 softmmu/bootdevice.c                |  2 +-
 softmmu/qdev-monitor.c              |  6 +++---
 18 files changed, 47 insertions(+), 46 deletions(-)
Signature · 1 line
2.38.1