[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/9] hw/sysbus/platform-bus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVIC
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 0/9] hw/sysbus/platform-bus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE |
Date: |
Sat, 25 Jan 2025 19:13:34 +0100 |
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
- [PATCH 0/9] hw/sysbus/platform-bus: Introduce TYPE_DYNAMIC_SYS_BUS_DEVICE,
Philippe Mathieu-Daudé <=