Skip to content

hw/sysbus: Spring cleanups (part 1)

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest25 patches 45 repliesIn review
  2. v27 patches 6 repliesSuperseded
  3. v127 patches 7 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25hw/i386/microvm: Use proper SysBus accessorshw/i386/microvm-dt.c+4 -22 replies
2/25hw/i386/ioapic: Use proper SysBus accessorshw/i386/kvm/ioapic.c+2 -12 replies
3/25hw/timer/hpet: Use proper SysBus accessorshw/timer/hpet.c+2 -21 reply
4/25hw/acpi/cxl: Use proper SysBus accessorshw/acpi/cxl.c+1 -12 replies
5/25hw/ppc/e500: Use proper SysBus accessorshw/ppc/e500.c+1 -11 reply
6/25hw/pci-bridge: Use proper SysBus accessorshw/pci-bridge/pci_expander_bridge.c+4 -21 reply
7/25hw/sysbus: Use memory_region_name()hw/core/sysbus.c+1 -11 reply
8/25hw/nvme/ctrl: Use memory_region_size()hw/nvme/ctrl.c+5 -32 replies
9/25hw/s390x: Use memory_region_size()hw/s390x/s390-pci-inst.c+1 -13 replies
10/25system/memory: Have memory_region_size() take a const argumentinclude/system/memory.h system/memory.c+2 -24 replies
11/25system/memory: Introduce memory_region_get_address()include/system/memory.h system/memory.c+12 -04 replies
12/25migration/ram: Use memory_region_get_address()migration/ram.c+6 -52 replies
13/25hw/acpi: Use memory_region_get_address()hw/acpi/cxl.c hw/i386/acpi-build.c hw/loongarch/virt-acpi-build.c+13 -72 replies
14/25hw/fdt: Use memory_region_get_address()hw/i386/microvm-dt.c hw/loongarch/virt-fdt-build.c+4 -41 reply
15/25hw/nvme: Use memory_region_get_address()hw/nvme/ctrl.c+4 -32 replies
16/25hw/s390x: Use memory_region_get_address()hw/s390x/s390-pci-inst.c+14 -74 replies
17/25hw/timer/hpet: Use memory_region_get_address()hw/timer/hpet.c+1 -12 replies
18/25hw/watchdog/aspeed: Use memory_region_get_address()hw/watchdog/wdt_aspeed.c+1 -12 replies
19/25hw/pci-bridge: Use memory_region_get_address()hw/pci-bridge/pci_expander_bridge.c+1 -11 reply
20/25system/ioport: Use memory_region_get_address()system/ioport.c+14 -71 reply
21/25hw/sysbus: Use memory_region_get_address()hw/core/sysbus.c+10 -71 reply
22/25hw/sysbus: Hoist MemoryRegion in sysbus_mmio_map_common()hw/core/sysbus.c+5 -21 reply
23/25hw/sysbus: Remove sysbus_mmio_map_common() @may_overlap argumenthw/core/sysbus.c+5 -141 reply
24/25hw/sysbus: Use memory_region_is_mapped() to check for mapped regionhw/core/sysbus.c include/hw/sysbus.h+1 -81 reply
25/25hw/sysbus: Simplify SysBusDevice::mmiohw/core/sysbus.c include/hw/sysbus.h+5 -71 reply

Reviews trailers per patch

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

PatchBALATON ZoltanMarc-André LureauPeter XuThomas HuthRichard HendersonDavid HildenbrandJonathan CameronCédric Le GoaterZhao LiuKlaus Jensen
1/25R-b
2/25R-b
3/25R-b
4/25R-b A-b
5/25R-b
6/25R-b
7/25R-b R-b
8/25R-b R-b
9/25R-b R-b R-b
10/25A-b R-b R-b R-b
11/25A-b R-b R-b R-b
12/25A-b R-b
13/25A-b
14/25R-b
15/25R-b R-b
16/25R-b
17/25R-b R-b
18/25R-b R-b
19/25R-b
20/25R-b
21/25R-b
22/25R-b
23/25R-b
24/25R-b
25/25R-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 10 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/25] hw/sysbus: Spring cleanups (part 1)

- Use sysbus_mmio_get_region() instead of SysBusDevice::mmio[].memory
- Use memory_region_name() instead of MemoryRegion::name
- Use memory_region_size() instead of int128_get64(MemoryRegion::size)
- Add memory_region_get_address()
- Use memory_region_get_address() instead of MemoryRegion::addr
- Remove SysBusDevice::mmio[].addr
- Simplify SysBusDevice::mmio[]

Philippe Mathieu-Daudé (25):
hw/i386/microvm: Use proper SysBus accessors hw/i386/ioapic: Use proper SysBus accessors hw/timer/hpet: Use proper SysBus accessors
hw/acpi/cxl: Use proper SysBus accessors
hw/ppc/e500: Use proper SysBus accessors
hw/pci-bridge: Use proper SysBus accessors
hw/sysbus: Use memory_region_name()
hw/nvme/ctrl: Use memory_region_size()
hw/s390x: Use memory_region_size()
system/memory: Have memory_region_size() take a const argument system/memory: Introduce memory_region_get_address() migration/ram: Use memory_region_get_address()
hw/acpi: Use memory_region_get_address()
hw/fdt: Use memory_region_get_address()
hw/nvme: Use memory_region_get_address()
hw/s390x: Use memory_region_get_address()
hw/timer/hpet: Use memory_region_get_address() hw/watchdog/aspeed: Use memory_region_get_address() hw/pci-bridge: Use memory_region_get_address() system/ioport: Use memory_region_get_address() hw/sysbus: Use memory_region_get_address()
hw/sysbus: Hoist MemoryRegion in sysbus_mmio_map_common() hw/sysbus: Remove sysbus_mmio_map_common() @may_overlap argument hw/sysbus: Use memory_region_is_mapped() to check for mapped region hw/sysbus: Simplify SysBusDevice::mmio

 include/hw/sysbus.h                 |  5 +--
 include/system/memory.h             |  9 ++++-
 hw/acpi/cxl.c                       | 10 +++--
 hw/core/sysbus.c                    | 57 ++++++++++++-----------------
 hw/i386/acpi-build.c                |  8 ++--
 hw/i386/kvm/ioapic.c                |  3 +-
 hw/i386/microvm-dt.c                |  6 ++-
 hw/loongarch/virt-acpi-build.c      |  4 +-
 hw/loongarch/virt-fdt-build.c       |  4 +-
 hw/nvme/ctrl.c                      | 15 +++++---
 hw/pci-bridge/pci_expander_bridge.c |  6 ++-
 hw/ppc/e500.c                       |  2 +-
 hw/s390x/s390-pci-inst.c            | 23 ++++++++----
 hw/timer/hpet.c                     |  4 +-
 hw/watchdog/wdt_aspeed.c            |  2 +-
 migration/ram.c                     | 11 +++---
 system/ioport.c                     | 21 +++++++----
 system/memory.c                     |  7 +++-
 18 files changed, 113 insertions(+), 84 deletions(-)
Signature · 1 line
2.51.0