Skip to content

memory: QOM-ify AddressSpace

Akihiko Odaki kvm qemu-arm qemu-devel qemu-riscv 1 version In review

Get series with b4
b4 am [email protected] change-id 20250915-qom-e7fcca27d4db

Versions newest first

  1. v1 Latest35 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/35memory: QOM-ify AddressSpacehw/alpha/typhoon.c hw/arm/armv7m.c hw/arm/aspeed_ast27x0.c +67 more+163 -981 reply
2/35hw/core/loader: Use address_space_get_path()hw/core/loader.c+4 -42 replies
3/35vfio: Use address_space_get_path()hw/vfio/listener.c hw/virtio/vhost-vdpa.c+9 -31 reply
4/35hw/alpha: QOM-ify AddressSpacehw/alpha/typhoon.c+2 -21 reply
5/35hw/arm: QOM-ify AddressSpacehw/arm/armv7m.c hw/arm/aspeed_ast27x0.c hw/arm/smmu-common.c+5 -41 reply
6/35hw/display: QOM-ify AddressSpacehw/display/artist.c hw/display/bcm2835_fb.c+2 -20 replies
7/35hw/dma: QOM-ify AddressSpacehw/dma/bcm2835_dma.c hw/dma/pl080.c hw/dma/pl330.c +4 more+9 -120 replies
8/35hw/fsi: QOM-ify AddressSpacehw/fsi/aspeed_apb2opb.c+1 -10 replies
9/35hw/i2c: QOM-ify AddressSpacehw/i2c/aspeed_i2c.c+1 -20 replies
10/35hw/i386: QOM-ify AddressSpacehw/i386/amd_iommu.c hw/i386/intel_iommu.c+7 -42 replies
11/35hw/intc: QOM-ify AddressSpacehw/intc/arm_gicv3_common.c hw/intc/pnv_xive.c+3 -40 replies
12/35hw/loongarch: QOM-ify AddressSpacehw/loongarch/virt.c+2 -10 replies
13/35hw/mem: QOM-ify AddressSpacehw/mem/cxl_type3.c hw/mem/memory-device.c+14 -341 reply
14/35hw/misc: QOM-ify AddressSpacehw/misc/aspeed_hace.c hw/misc/auxbus.c hw/misc/bcm2835_mbox.c +5 more+12 -130 replies
15/35hw/net: QOM-ify AddressSpacehw/net/allwinner-sun8i-emac.c hw/net/cadence_gem.c hw/net/dp8393x.c +2 more+6 -60 replies
16/35hw/nubus: QOM-ify AddressSpacehw/nubus/nubus-bus.c+2 -20 replies
17/35hw/pci: QOM-ify AddressSpacehw/pci/pci.c hw/pci/pci_bridge.c+8 -90 replies
18/35hw/pci-host: QOM-ify AddressSpacehw/pci-host/astro.c hw/pci-host/designware.c hw/pci-host/dino.c +6 more+13 -150 replies
19/35hw/ppc: QOM-ify AddressSpacehw/ppc/pnv_lpc.c hw/ppc/pnv_xscom.c hw/ppc/spapr_pci.c +1 more+5 -60 replies
20/35hw/remote: QOM-ify AddressSpacehw/remote/iommu.c+2 -20 replies
21/35hw/riscv: QOM-ify AddressSpacehw/riscv/riscv-iommu.c+5 -50 replies
22/35hw/s390x: QOM-ify AddressSpacehw/s390x/s390-pci-bus.c+2 -70 replies
23/35hw/scsi: QOM-ify AddressSpacehw/scsi/lsi53c895a.c+3 -30 replies
24/35hw/sd: QOM-ify AddressSpacehw/sd/allwinner-sdhost.c hw/sd/sdhci.c+3 -30 replies
25/35hw/sparc: QOM-ify AddressSpacehw/sparc/sun4m_iommu.c+1 -20 replies
26/35hw/sparc64: QOM-ify AddressSpacehw/sparc64/sun4u_iommu.c+1 -20 replies
27/35hw/ssi: QOM-ify AddressSpacehw/ssi/aspeed_smc.c+2 -40 replies
28/35hw/usb: QOM-ify AddressSpacehw/usb/hcd-dwc2.c+1 -10 replies
29/35hw/usb: QOM-ify AddressSpacehw/usb/hcd-xhci-sysbus.c+1 -10 replies
30/35hw/virtio: QOM-ify AddressSpacehw/virtio/virtio-iommu.c hw/virtio/virtio-pci.c+8 -70 replies
31/35system/physmem: QOM-ify AddressSpaceinclude/exec/cpu-common.h system/physmem.c+10 -110 replies
32/35target/i386: QOM-ify AddressSpacetarget/i386/kvm/kvm.c+2 -10 replies
33/35target/mips: QOM-ify AddressSpacetarget/mips/cpu.c+2 -20 replies
34/35target/xtensa: QOM-ify AddressSpacetarget/xtensa/cpu.c+1 -10 replies
35/35memory: Drop non-QOM AddressSpace supportinclude/system/memory.h system/memory.c+5 -341 reply

Reviews trailers per patch

5 of 35 patches have a Reviewed-by or Acked-by.

PatchJonathan CameronRichard HendersonCédric Le Goater
1/35
2/35
3/35R-b
4/35R-b
5/35R-b
6/35
7/35
8/35
9/35
10/35
11/35
12/35
13/35A-b
14/35
15/35
16/35
17/35
18/35
19/35
20/35
21/35
22/35
23/35
24/35
25/35
26/35
27/35
28/35
29/35
30/35
31/35
32/35
33/35
34/35
35/35R-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 v1 thread

Cover letter [PATCH 00/35] memory: QOM-ify AddressSpace

Based-on: <[email protected]> ("[PATCH 00/14] Fix memory region use-after-finalization")

Make AddressSpaces QOM objects to ensure that they are destroyed when their owners are finalized and also to get a unique path for debugging output.

Suggested by BALATON Zoltan:
https://lore.kernel.org/qemu-devel/[email protected]/

---
Akihiko Odaki (35):
memory: QOM-ify AddressSpace hw/core/loader: Use address_space_get_path()
vfio: Use address_space_get_path() hw/alpha: QOM-ify AddressSpace hw/arm: QOM-ify AddressSpace hw/display: QOM-ify AddressSpace hw/dma: QOM-ify AddressSpace
hw/fsi: QOM-ify AddressSpace
hw/i2c: QOM-ify AddressSpace hw/i386: QOM-ify AddressSpace hw/intc: QOM-ify AddressSpace hw/loongarch: QOM-ify AddressSpace hw/mem: QOM-ify AddressSpace hw/misc: QOM-ify AddressSpace hw/net: QOM-ify AddressSpace hw/nubus: QOM-ify AddressSpace hw/pci: QOM-ify AddressSpace hw/pci-host: QOM-ify AddressSpace hw/ppc: QOM-ify AddressSpace hw/remote: QOM-ify AddressSpace hw/riscv: QOM-ify AddressSpace hw/s390x: QOM-ify AddressSpace hw/scsi: QOM-ify AddressSpace
hw/sd: QOM-ify AddressSpace hw/sparc: QOM-ify AddressSpace hw/sparc64: QOM-ify AddressSpace hw/ssi: QOM-ify AddressSpace
hw/usb: QOM-ify AddressSpace
hw/usb: QOM-ify AddressSpace hw/virtio: QOM-ify AddressSpace system/physmem: QOM-ify AddressSpace target/i386: QOM-ify AddressSpace target/mips: QOM-ify AddressSpace target/xtensa: QOM-ify AddressSpace
memory: Drop non-QOM AddressSpace support

 include/exec/cpu-common.h     |  4 +--
 include/system/memory.h       | 20 +++++++++------
 hw/alpha/typhoon.c            |  4 +--
 hw/arm/armv7m.c               |  2 +-
 hw/arm/aspeed_ast27x0.c       |  2 +-
 hw/arm/smmu-common.c          |  5 ++--
 hw/core/loader.c              |  8 +++---
 hw/display/artist.c           |  2 +-
 hw/display/bcm2835_fb.c       |  2 +-
 hw/dma/bcm2835_dma.c          |  2 +-
 hw/dma/pl080.c                |  2 +-
 hw/dma/pl330.c                |  3 +--
 hw/dma/rc4030.c               |  4 +--
 hw/dma/xilinx_axidma.c        |  4 +--
 hw/dma/xlnx-zdma.c            |  2 +-
 hw/dma/xlnx_csu_dma.c         |  2 +-
 hw/fsi/aspeed_apb2opb.c       |  2 +-
 hw/i2c/aspeed_i2c.c           |  3 +--
 hw/i386/amd_iommu.c           |  5 ++--
 hw/i386/intel_iommu.c         |  5 +++-
 hw/intc/arm_gicv3_common.c    |  3 +--
 hw/intc/pnv_xive.c            |  4 +--
 hw/loongarch/virt.c           |  3 ++-
 hw/mem/cxl_type3.c            | 44 +++++++++------------------------
 hw/mem/memory-device.c        |  4 +--
 hw/misc/aspeed_hace.c         |  2 +-
 hw/misc/auxbus.c              |  2 +-
 hw/misc/bcm2835_mbox.c        |  2 +-
 hw/misc/bcm2835_property.c    |  2 +-
 hw/misc/max78000_gcr.c        |  2 +-
 hw/misc/tz-mpc.c              |  6 ++---
 hw/misc/tz-msc.c              |  2 +-
 hw/misc/tz-ppc.c              |  5 +++-
 hw/net/allwinner-sun8i-emac.c |  2 +-
 hw/net/cadence_gem.c          |  4 +--
 hw/net/dp8393x.c              |  2 +-
 hw/net/msf2-emac.c            |  2 +-
 hw/net/mv88w8618_eth.c        |  2 +-
 hw/nubus/nubus-bus.c          |  4 +--
 hw/pci-host/astro.c           |  3 +--
 hw/pci-host/designware.c      |  5 ++--
 hw/pci-host/dino.c            |  4 +--
 hw/pci-host/gt64120.c         |  2 +-
 hw/pci-host/pnv_phb3.c        |  4 +--
 hw/pci-host/pnv_phb4.c        |  4 +--
 hw/pci-host/ppc440_pcix.c     |  2 +-
 hw/pci-host/ppce500.c         |  2 +-
 hw/pci-host/raven.c           |  2 +-
 hw/pci/pci.c                  |  6 ++---
 hw/pci/pci_bridge.c           | 10 ++++----
 hw/ppc/pnv_lpc.c              |  2 +-
 hw/ppc/pnv_xscom.c            |  2 +-
 hw/ppc/spapr_pci.c            |  5 ++--
 hw/ppc/spapr_vio.c            |  2 +-
 hw/remote/iommu.c             |  4 +--
 hw/riscv/riscv-iommu.c        |  9 ++++---
 hw/s390x/s390-pci-bus.c       |  9 ++-----
 hw/scsi/lsi53c895a.c          |  5 ++--
 hw/sd/allwinner-sdhost.c      |  2 +-
 hw/sd/sdhci.c                 |  4 +--
 hw/sparc/sun4m_iommu.c        |  2 +-
 hw/sparc64/sun4u_iommu.c      |  2 +-
 hw/ssi/aspeed_smc.c           |  6 ++---
 hw/usb/hcd-dwc2.c             |  2 +-
 hw/usb/hcd-xhci-sysbus.c      |  2 +-
 hw/vfio/listener.c            |  8 ++++--
 hw/virtio/vhost-vdpa.c        |  4 ++-
 hw/virtio/virtio-iommu.c      |  3 ++-
 hw/virtio/virtio-pci.c        | 12 ++++-----
 system/memory.c               | 57 ++++++++++++++++++++++++++++---------------
 system/physmem.c              | 24 ++++++++++--------
 target/i386/kvm/kvm.c         |  3 ++-
 target/mips/cpu.c             |  4 +--
 target/xtensa/cpu.c           |  2 +-
 74 files changed, 204 insertions(+), 195 deletions(-)

---
base-commit: e101d33792530093fa0b0a6e5f43e4d8cfe4581e
change-id: 20250915-qom-e7fcca27d4db
prerequisite-change-id: 20250906-use-37ecc903a9e0:v2
prerequisite-patch-id: d464fda86a3c79ff8e6d7a2e623d979b2a47019b
prerequisite-patch-id: 17b153237f69c898b9c5b93aad0d5116d0bfe49f
prerequisite-patch-id: a323f67e01c672ab2958a237ea54b77f1443e2d1
prerequisite-patch-id: 822094864ad7a6a702fee098e4835621bd8092fe
prerequisite-patch-id: 5757efd81557b060257b5db6dec6fd189076ee77
prerequisite-patch-id: bd912830a326f13186bf38e916655ec980e11af8
prerequisite-patch-id: fe6b92112288829e60f10c305742a544f45e8984
prerequisite-patch-id: ac4ff0c11dcc1fc5d08b4fc480c14721fde574ad
prerequisite-patch-id: ff398fa97b5f2feee85372fdf108d82d8d5526b0
prerequisite-patch-id: 7ac446ae76e05dd267a63889ff775ac609712c31
prerequisite-patch-id: b49a74cd5f31348c3dc13dcfd1dad629e6b30387
prerequisite-patch-id: 8f61fe1b81cf3ec906ebbf61776573edd96c1e8c
prerequisite-patch-id: 01fb8ccbe7326021a94a8d7531189568d2e311a7
prerequisite-patch-id: 974b0fc6d7c8d6d56b8f44597260647e1a53cf38
prerequisite-patch-id: 55c4711a2a4e6b02b8b512e0283f8feaf7d3bfa3
prerequisite-message-id: <[email protected]>
prerequisite-patch-id: f9c7e666c59cdc8a561d6d122e7937648da490e1
prerequisite-patch-id: 9b52629b6d9d32e71e5c416aead9aadb0e3c7ae2
prerequisite-patch-id: 16467219e7dd93204cec6ceb6d69577e3e86c03a
prerequisite-patch-id: 37a3ee3288d2cda8303c9c9e3d5ec9d813b05ef6
prerequisite-patch-id: b707ebf05289b55e8458b6b3515aa0fc559c7c88
prerequisite-patch-id: 721e733f06ce38375881520725177c9da9c22633
prerequisite-patch-id: 3cd399b599a9ff57066d820b1e6504b335be4f79
prerequisite-patch-id: 8a607cc6e52a6a6958a73cd1a1b824b52a4f4582
prerequisite-patch-id: af3976b1c4c3ef4859f2371a318214af5418e97d
prerequisite-patch-id: 76c6e115f8771f31c99f454fd3188ca49e283025
prerequisite-patch-id: 488b5dd5a90070331daae2e22f7c1f6419a7e428
prerequisite-patch-id: 53b85575018fecb94e208bdb5d3047b8d66fb4dd
prerequisite-patch-id: 0426e04bb68376f2d4fad6ade4ac641202172396
prerequisite-patch-id: 6ba40a4bf6e2b0ba3d4ecf9a1c4fed7f46e5730c

Best regards,

Signature · 1 line
Akihiko Odaki <[email protected]>