[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 00/12] hw: Strengthen SysBus & QBus API
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 00/12] hw: Strengthen SysBus & QBus API |
Date: |
Wed, 18 Oct 2023 16:11:38 +0200 |
Hi,
This series ensure:
- qbus_new() and sysbus_init_mmio() are called *before*
a device is realized,
- sysbus_mmio_map() is called *after* it is realized.
First we fix some abuse, then we enforce in qdev/sysbus
core code.
Philippe Mathieu-Daudé (12):
hw/i386/amd_iommu: Do not use SysBus API to map local MMIO region
hw/i386/intel_iommu: Do not use SysBus API to map local MMIO region
hw/misc/allwinner-dramc: Move sysbus_mmio_map call from init ->
realize
hw/misc/allwinner-dramc: Do not use SysBus API to map local MMIO
region
hw/pci-host/bonito: Do not use SysBus API to map local MMIO region
hw/acpi: Realize ACPI_GED sysbus device before accessing it
hw/arm/virt: Realize ARM_GICV2M sysbus device before accessing it
hw/isa: Realize ISA BUS sysbus device before accessing it
hw/s390x/css-bridge: Realize sysbus device before accessing it
hw/qdev: Ensure parent device is not realized before adding bus
hw/sysbus: Ensure device is not realized before adding MMIO region
hw/sysbus: Ensure device is realized before mapping it
hw/arm/virt.c | 5 ++---
hw/core/bus.c | 7 +++++++
hw/core/sysbus.c | 13 +++++++++++++
hw/i386/amd_iommu.c | 5 ++---
hw/i386/intel_iommu.c | 5 ++---
hw/i386/microvm.c | 2 +-
hw/isa/isa-bus.c | 11 +++++++++--
hw/loongarch/virt.c | 2 +-
hw/misc/allwinner-r40-dramc.c | 20 +++++++++-----------
hw/pci-host/bonito.c | 29 ++++++++++++++---------------
hw/s390x/css-bridge.c | 7 +++----
11 files changed, 63 insertions(+), 43 deletions(-)
--
2.41.0
- [PATCH 00/12] hw: Strengthen SysBus & QBus API,
Philippe Mathieu-Daudé <=
- [PATCH 01/12] hw/i386/amd_iommu: Do not use SysBus API to map local MMIO region, Philippe Mathieu-Daudé, 2023/10/18
- [PATCH 02/12] hw/i386/intel_iommu: Do not use SysBus API to map local MMIO region, Philippe Mathieu-Daudé, 2023/10/18
- [PATCH 03/12] hw/misc/allwinner-dramc: Move sysbus_mmio_map call from init -> realize, Philippe Mathieu-Daudé, 2023/10/18
- [PATCH 04/12] hw/misc/allwinner-dramc: Do not use SysBus API to map local MMIO region, Philippe Mathieu-Daudé, 2023/10/18
- [PATCH 05/12] hw/pci-host/bonito: Do not use SysBus API to map local MMIO region, Philippe Mathieu-Daudé, 2023/10/18
- [PATCH 06/12] hw/acpi: Realize ACPI_GED sysbus device before accessing it, Philippe Mathieu-Daudé, 2023/10/18
- [PATCH 07/12] hw/arm/virt: Realize ARM_GICV2M sysbus device before accessing it, Philippe Mathieu-Daudé, 2023/10/18