qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] hw/sysbus/platform-bus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE
@ 2025-01-25 18:13 Philippe Mathieu-Daudé
  2025-01-25 18:13 ` [PATCH 1/9] hw/sysbus: Use sizeof(BusState) in main_system_bus_create() Philippe Mathieu-Daudé
                   ` (11 more replies)
  0 siblings, 12 replies; 41+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-01-25 18:13 UTC (permalink / raw)
  To: qemu-devel
  Cc: Yi Liu, Markus Armbruster, Eduardo Habkost, Anthony PERARD,
	Gustavo Romero, Jason Wang, qemu-ppc, Michael S. Tsirkin,
	Paolo Bonzini, Alexander Graf, Richard Henderson, Stefan Berger,
	Bernhard Beschow, Stefano Stabellini, Gerd Hoffmann,
	Daniel P. Berrangé, Edgar E. Iglesias, xen-devel,
	Marcel Apfelbaum, Alex Williamson, Paul Durrant,
	Clément Mathieu--Drif, Cédric Le Goater,
	Philippe Mathieu-Daudé

Some SysBus devices can optionally be dynamically plugged onto
the sysbus-platform-bus (then virtual guests are aware of
mmio mapping and IRQs via device tree / ACPI rules).

This series makes these devices explicit by having them implement
the DYNAMIC_SYS_BUS_DEVICE class, which only sets 'user_creatable'
flag to %true but makes the codebase a bit clearer (IMHO, at least
now we can grep for DYNAMIC_SYS_BUS_DEVICE).

Philippe Mathieu-Daudé (9):
  hw/sysbus: Use sizeof(BusState) in main_system_bus_create()
  hw/sysbus: Declare QOM types using DEFINE_TYPES() macro
  hw/sysbus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE
  hw/vfio: Have VFIO_PLATFORM devices inherit from
    DYNAMIC_SYS_BUS_DEVICE
  hw/display: Have RAMFB device inherit from DYNAMIC_SYS_BUS_DEVICE
  hw/i386: Have X86_IOMMU devices inherit from DYNAMIC_SYS_BUS_DEVICE
  hw/net: Have eTSEC device inherit from DYNAMIC_SYS_BUS_DEVICE
  hw/tpm: Have TPM TIS sysbus device inherit from DYNAMIC_SYS_BUS_DEVICE
  hw/xen: Have legacy Xen backend inherit from DYNAMIC_SYS_BUS_DEVICE

 include/hw/sysbus.h           |  2 ++
 include/hw/xen/xen_pvdev.h    |  3 +-
 hw/core/sysbus.c              | 53 ++++++++++++++++++++---------------
 hw/display/ramfb-standalone.c |  3 +-
 hw/i386/amd_iommu.c           |  2 --
 hw/i386/intel_iommu.c         |  2 --
 hw/i386/x86-iommu.c           |  2 +-
 hw/net/fsl_etsec/etsec.c      |  4 +--
 hw/tpm/tpm_tis_sysbus.c       |  3 +-
 hw/vfio/amd-xgbe.c            |  2 --
 hw/vfio/calxeda-xgmac.c       |  2 --
 hw/vfio/platform.c            |  4 +--
 hw/xen/xen-legacy-backend.c   |  7 ++---
 13 files changed, 42 insertions(+), 47 deletions(-)

-- 
2.47.1



^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2025-02-10 20:36 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-25 18:13 [PATCH 0/9] hw/sysbus/platform-bus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE Philippe Mathieu-Daudé
2025-01-25 18:13 ` [PATCH 1/9] hw/sysbus: Use sizeof(BusState) in main_system_bus_create() Philippe Mathieu-Daudé
2025-01-26 21:42   ` Richard Henderson
2025-01-27  6:21   ` CLEMENT MATHIEU--DRIF
2025-01-25 18:13 ` [PATCH 2/9] hw/sysbus: Declare QOM types using DEFINE_TYPES() macro Philippe Mathieu-Daudé
2025-01-26 21:45   ` Richard Henderson
2025-01-27  6:26   ` CLEMENT MATHIEU--DRIF
2025-01-27  9:23   ` Bernhard Beschow
2025-01-25 18:13 ` [PATCH 3/9] hw/sysbus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE Philippe Mathieu-Daudé
2025-01-26 21:47   ` Richard Henderson
2025-01-27  6:19   ` CLEMENT MATHIEU--DRIF
2025-01-25 18:13 ` [PATCH 4/9] hw/vfio: Have VFIO_PLATFORM devices inherit from DYNAMIC_SYS_BUS_DEVICE Philippe Mathieu-Daudé
2025-01-26 21:52   ` Richard Henderson
2025-01-25 18:13 ` [PATCH 5/9] hw/display: Have RAMFB device " Philippe Mathieu-Daudé
2025-01-26 21:53   ` Richard Henderson
2025-01-27  6:17   ` CLEMENT MATHIEU--DRIF
2025-01-25 18:13 ` [PATCH 6/9] hw/i386: Have X86_IOMMU devices " Philippe Mathieu-Daudé
2025-01-26 21:54   ` Richard Henderson
2025-01-27  6:14   ` CLEMENT MATHIEU--DRIF
2025-01-25 18:13 ` [PATCH 7/9] hw/net: Have eTSEC device " Philippe Mathieu-Daudé
2025-01-26 21:54   ` Richard Henderson
2025-01-27  6:21   ` CLEMENT MATHIEU--DRIF
2025-01-27  9:21   ` Bernhard Beschow
2025-01-25 18:13 ` [PATCH 8/9] hw/tpm: Have TPM TIS sysbus " Philippe Mathieu-Daudé
2025-01-26 21:55   ` Richard Henderson
2025-01-27  6:16   ` CLEMENT MATHIEU--DRIF
2025-01-27 16:52   ` Stefan Berger
2025-01-25 18:13 ` [RFC PATCH 9/9] hw/xen: Have legacy Xen backend " Philippe Mathieu-Daudé
2025-01-27  9:41   ` [PATCH] hw/*/xen*: Prefer QOM cast for XenLegacyDevice Bernhard Beschow
2025-02-04 21:23     ` Philippe Mathieu-Daudé
2025-01-27  9:46   ` [RFC PATCH 9/9] hw/xen: Have legacy Xen backend inherit from DYNAMIC_SYS_BUS_DEVICE Bernhard Beschow
2025-02-04 21:25     ` Philippe Mathieu-Daudé
2025-02-04 23:12       ` Bernhard Beschow
2025-02-05 18:10         ` Philippe Mathieu-Daudé
2025-01-27  0:29 ` [PATCH 0/9] hw/sysbus/platform-bus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE Alexander Graf
2025-01-28 10:41 ` Gerd Hoffmann
2025-01-28 10:50   ` Peter Maydell
2025-01-28 12:57     ` BALATON Zoltan
2025-01-28 15:10       ` Philippe Mathieu-Daudé
2025-01-28 19:13         ` Bernhard Beschow
2025-02-10 20:36 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).