Misc HW/UI patches for 2023-10-19
The following changes since commit 0d239e513e0117e66fa739fb71a43b9383a108ff:
Merge tag 'pull-lu-20231018' of https://gitlab.com/rth7680/qemu into staging (2023-10-19 10:20:57 -0700)
are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20231020
for you to fetch changes up to 9f1b100236223d073915b8eedac3089ec64f8a6e:
ui/input: Constify QemuInputHandler structure (2023-10-20 14:46:07 +0200)
Since v1:
- Dropped PC_SPEAKER patch
- Added MAINTAINERS::util/qemu-timer-common.c patch
----------------------------------------------------------------
Misc hardware patch queue
- MAINTAINERS updates (Zoltan, Thomas)
- Fix cutils::get_relocated_path on Windows host (Akihiko)
- Housekeeping in Memory APIs (Marc-André)
- SDHCI fix for SDMA transfer (Lu, Jianxian)
- Various QOM/QDev/SysBus cleanups (Philippe)
- Constify QemuInputHandler structure (Philippe)
----------------------------------------------------------------
Akihiko Odaki (1):
cutils: Fix get_relocated_path on Windows
BALATON Zoltan (1):
MAINTAINERS: Split vt82c686 out of fuloong2e
Lu Gao (1):
hw/sd/sdhci: Block Size Register bits [14:12] is lost
Luc Michel (1):
mailmap: update email addresses for Luc Michel
Marc-André Lureau (2):
memory: drop needless argument
memory: follow Error API guidelines
Philippe Mathieu-Daudé (36):
buildsys: Only display Objective-C information when Objective-C is
used
hw/mips/malta: Use sdram_type enum from 'hw/i2c/smbus_eeprom.h' hw/mips: Merge 'hw/mips/cpudevs.h' with 'target/mips/cpu.h' hw/misc/mips_itu: Declare itc_reconfigure() in 'hw/misc/mips_itu.h' hw/misc/mips_itu: Make MIPSITUState target agnostic hw/pci-host/sh_pcic: Declare CPU QOM types using DEFINE_TYPES() macro hw/pci-host/sh_pcic: Correct PCI host / devfn#0 function names hw/pci-host/sh_pcic: Replace magic value by proper definition hw/sparc64/ebus: Access memory regions via pci_address_space_io() hw/acpi/pcihp: Clean up global variable shadowing in acpi_pcihp_init() hw/pci: Clean up global variable shadowing of address_space_io
variable
hw/s390x: Clean up global variable shadowing in
quiesce_powerdown_req()
hw/intc/apic: Use ERRP_GUARD() in apic_common_realize() hw/ppc/spapr_vio: Realize SPAPR_VIO_BRIDGE device before accessing it hw/ppc/pnv_xscom: Rename pnv_xscom_realize(Error **) ->
pnv_xscom_init()
hw/ppc/pnv_xscom: Move sysbus_mmio_map() call within pnv_xscom_init() hw/ppc/pnv_xscom: Do not use SysBus API to map local MMIO region hw/ppc/pnv: Do not use SysBus API to map local MMIO region hw/intc/spapr_xive: Move sysbus_init_mmio() calls around hw/intc/spapr_xive: Do not use SysBus API to map local MMIO region 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 bridge device before accessing it hw/s390x/css-bridge: Realize sysbus device before accessing it hw/virtio/virtio-pmem: Replace impossible check by assertion hw/block/vhost-user-blk: Use DEVICE() / VIRTIO_DEVICE() macros hw/display/virtio-gpu: Use VIRTIO_DEVICE() macro hw/scsi/virtio-scsi: Use VIRTIO_SCSI_COMMON() macro hw/dma: Declare link using static DEFINE_PROP_LINK() macro hw/net: Declare link using static DEFINE_PROP_LINK() macro ui/input: Constify QemuInputHandler structure
Thomas Huth (4):
MAINTAINERS: Add hw/input/lasips2.c to the HPPA machine section
MAINTAINERS: Add include/hw/intc/loongson_liointc.h to the Loongson-3
virt section
MAINTAINERS: Add include/hw/openrisc/ to the OpenRISC section
MAINTAINERS: Extend entry to cover util/qemu-timer-common.c, too
MAINTAINERS | 18 +++++++-- meson.build | 6 ++- include/hw/acpi/pcihp.h | 2 +- include/hw/core/cpu.h | 4 +- include/hw/core/sysemu-cpu-ops.h | 2 +- include/hw/mips/cpudevs.h | 14 ------- include/hw/misc/mips_itu.h | 4 +- include/hw/pci/pci.h | 9 ++--- include/hw/ppc/pnv_xscom.h | 2 +- include/hw/virtio/virtio-input.h | 2 +- include/sysemu/memory_mapping.h | 2 +- include/ui/input.h | 2 +- target/i386/cpu.h | 2 +- target/mips/cpu.h | 7 ++-- chardev/msmouse.c | 2 +- chardev/wctablet.c | 2 +- hw/acpi/pcihp.c | 5 +-- hw/arm/virt.c | 5 +-- hw/block/vhost-user-blk.c | 4 +- hw/char/escc.c | 2 +- hw/core/cpu-sysemu.c | 6 +-- hw/display/virtio-gpu.c | 2 +- hw/display/xenfb.c | 6 +-- hw/dma/xilinx_axidma.c | 6 +-- hw/dma/xlnx-zdma.c | 7 +--- hw/dma/xlnx_csu_dma.c | 13 ++----- hw/i386/amd_iommu.c | 5 +-- hw/i386/intel_iommu.c | 5 +-- hw/i386/microvm.c | 2 +- hw/input/adb-kbd.c | 2 +- hw/input/hid.c | 6 +-- hw/input/ps2.c | 4 +- hw/input/virtio-input-hid.c | 8 ++-- hw/intc/apic_common.c | 4 ++ hw/intc/spapr_xive.c | 12 +++--- hw/isa/isa-bus.c | 11 +++++- hw/loongarch/virt.c | 2 +- hw/mips/cps.c | 1 - hw/mips/fuloong2e.c | 1 - hw/mips/jazz.c | 1 - hw/mips/loongson3_virt.c | 1 - hw/mips/malta.c | 3 +- hw/mips/mips_int.c | 1 - hw/mips/mipssim.c | 1 - hw/misc/allwinner-r40-dramc.c | 20 +++++----- hw/misc/mips_itu.c | 4 +- hw/net/cadence_gem.c | 7 +--- hw/pci-host/bonito.c | 30 +++++++-------- hw/pci-host/sh_pci.c | 57 +++++++++++++---------------- hw/pci/pci.c | 25 +++++-------- hw/ppc/pnv.c | 26 +++---------- hw/ppc/pnv_xscom.c | 5 +-- hw/ppc/spapr_vio.c | 3 +- hw/s390x/css-bridge.c | 7 ++-- hw/s390x/sclpquiesce.c | 8 ++-- hw/scsi/virtio-scsi.c | 2 +- hw/sd/sdhci.c | 15 ++++++-- hw/sparc64/sun4u.c | 8 ++-- hw/virtio/virtio-pmem.c | 5 +-- system/memory_mapping.c | 17 ++++----- target/i386/arch_memory_mapping.c | 6 ++- target/mips/sysemu/cp0_timer.c | 1 - target/mips/tcg/sysemu/cp0_helper.c | 1 + target/mips/tcg/sysemu/tlb_helper.c | 1 - ui/input-legacy.c | 2 +- ui/input.c | 4 +- ui/vdagent.c | 2 +- util/cutils.c | 18 +++++---- .mailmap | 3 ++ 69 files changed, 222 insertions(+), 261 deletions(-) delete mode 100644 include/hw/mips/cpudevs.h
Signature · 1 line
2.41.0
[PULL v2 06/46] MAINTAINERS: Extend entry to cover util/qemu-timer-common.c, too
From: Thomas Huth <[email protected]>
We already cover util/qemu-timer.c in MAINTAINERS - change this entry to util/qemu-timer*.c so that it covers util/qemu-timer-common.c, too.
Message-ID: <[email protected]>
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -2937,7 +2937,7 @@ F: include/qemu/main-loop.h F: include/sysemu/runstate.h F: include/sysemu/runstate-action.h F: util/main-loop.c -F: util/qemu-timer.c +F: util/qemu-timer*.c F: system/vl.c F: system/main.c F: system/cpus.c
Signature · 1 line
2.41.0
Grr, I forgot to Cc qemu-devel@ ...
Quoted 167 lines · Philippe Mathieu-Daudé
The following changes since commit
0d239e513e0117e66fa739fb71a43b9383a108ff:Merge tag 'pull-lu-20231018' of https://gitlab.com/rth7680/qemu into staging (2023-10-19 10:20:57 -0700)are available in the Git repository at:
https://github.com/philmd/qemu.git tags/hw-misc-20231020for you to fetch changes up to
9f1b100236223d073915b8eedac3089ec64f8a6e:ui/input: Constify QemuInputHandler structure (2023-10-20 14:46:07 +0200)Since v1:
- DroppedPC_SPEAKERpatch
- Added MAINTAINERS::util/qemu-timer-common.c patch----------------------------------------------------------------
Misc hardware patch queue-
MAINTAINERSupdates (Zoltan, Thomas)
- Fixcutils::get_relocated_pathon Windows host (Akihiko)
- Housekeeping in Memory APIs (Marc-André)
- SDHCI fix for SDMA transfer (Lu, Jianxian)
- Various QOM/QDev/SysBus cleanups (Philippe)
- Constify QemuInputHandler structure (Philippe)----------------------------------------------------------------
Akihiko Odaki (1):
cutils: Fixget_relocated_pathon WindowsBALATON Zoltan (1):
MAINTAINERS: Split vt82c686 out of fuloong2eLu Gao (1):
hw/sd/sdhci: Block Size Register bits [14:12] is lostLuc Michel (1):
mailmap: update email addresses for Luc MichelMarc-André Lureau (2):
memory: drop needless argument
memory: follow Error API guidelinesPhilippe Mathieu-Daudé (36):
buildsys: Only display Objective-C information when Objective-C is
used
hw/mips/malta: Usesdram_typeenum from 'hw/i2c/smbus_eeprom.h' hw/mips: Merge 'hw/mips/cpudevs.h' with 'target/mips/cpu.h' hw/misc/mips_itu: Declareitc_reconfigure()in 'hw/misc/mips_itu.h' hw/misc/mips_itu: Make MIPSITUState target agnostic hw/pci-host/sh_pcic: Declare CPU QOM types usingDEFINE_TYPES()macro hw/pci-host/sh_pcic: Correct PCI host / devfn#0 function names hw/pci-host/sh_pcic: Replace magic value by proper definition hw/sparc64/ebus: Access memory regions viapci_address_space_io()hw/acpi/pcihp: Clean up global variable shadowing inacpi_pcihp_init()hw/pci: Clean up global variable shadowing ofaddress_space_io
variable
hw/s390x: Clean up global variable shadowing in
quiesce_powerdown_req()
hw/intc/apic: UseERRP_GUARD()inapic_common_realize()hw/ppc/spapr_vio: RealizeSPAPR_VIO_BRIDGEdevice before accessing it hw/ppc/pnv_xscom: Renamepnv_xscom_realize(Error **)->
pnv_xscom_init()
hw/ppc/pnv_xscom: Movesysbus_mmio_map()call withinpnv_xscom_init()hw/ppc/pnv_xscom: Do not use SysBus API to map local MMIO region hw/ppc/pnv: Do not use SysBus API to map local MMIO region hw/intc/spapr_xive: Movesysbus_init_mmio()calls around hw/intc/spapr_xive: Do not use SysBus API to map local MMIO region 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: Movesysbus_mmio_mapcall 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: RealizeACPI_GEDsysbus device before accessing it hw/arm/virt: RealizeARM_GICV2Msysbus device before accessing it hw/isa: Realize ISA bridge device before accessing it hw/s390x/css-bridge: Realize sysbus device before accessing it hw/virtio/virtio-pmem: Replace impossible check by assertion hw/block/vhost-user-blk: UseDEVICE()/VIRTIO_DEVICE()macros hw/display/virtio-gpu: UseVIRTIO_DEVICE()macro hw/scsi/virtio-scsi: UseVIRTIO_SCSI_COMMON()macro hw/dma: Declare link using staticDEFINE_PROP_LINK()macro hw/net: Declare link using staticDEFINE_PROP_LINK()macro ui/input: Constify QemuInputHandler structureThomas Huth (4):
MAINTAINERS: Addhw/input/lasips2.cto the HPPA machine section
MAINTAINERS: Addinclude/hw/intc/loongson_liointc.hto the Loongson-3
virt section
MAINTAINERS: Addinclude/hw/openrisc/to the OpenRISC section
MAINTAINERS: Extend entry to coverutil/qemu-timer-common.c, tooMAINTAINERS | 18 +++++++-- meson.build | 6 ++- include/hw/acpi/pcihp.h | 2 +- include/hw/core/cpu.h | 4 +- include/hw/core/sysemu-cpu-ops.h | 2 +- include/hw/mips/cpudevs.h | 14 ------- include/hw/misc/mips_itu.h | 4 +- include/hw/pci/pci.h | 9 ++--- include/hw/ppc/pnv_xscom.h | 2 +- include/hw/virtio/virtio-input.h | 2 +- include/sysemu/memory_mapping.h | 2 +- include/ui/input.h | 2 +- target/i386/cpu.h | 2 +- target/mips/cpu.h | 7 ++-- chardev/msmouse.c | 2 +- chardev/wctablet.c | 2 +- hw/acpi/pcihp.c | 5 +-- hw/arm/virt.c | 5 +-- hw/block/vhost-user-blk.c | 4 +- hw/char/escc.c | 2 +- hw/core/cpu-sysemu.c | 6 +-- hw/display/virtio-gpu.c | 2 +- hw/display/xenfb.c | 6 +-- hw/dma/xilinx_axidma.c | 6 +-- hw/dma/xlnx-zdma.c | 7 +--- hw/dma/xlnx_csu_dma.c | 13 ++----- hw/i386/amd_iommu.c | 5 +-- hw/i386/intel_iommu.c | 5 +-- hw/i386/microvm.c | 2 +- hw/input/adb-kbd.c | 2 +- hw/input/hid.c | 6 +-- hw/input/ps2.c | 4 +- hw/input/virtio-input-hid.c | 8 ++-- hw/intc/apic_common.c | 4 ++ hw/intc/spapr_xive.c | 12 +++--- hw/isa/isa-bus.c | 11 +++++- hw/loongarch/virt.c | 2 +- hw/mips/cps.c | 1 - hw/mips/fuloong2e.c | 1 - hw/mips/jazz.c | 1 - hw/mips/loongson3_virt.c | 1 - hw/mips/malta.c | 3 +- hw/mips/mips_int.c | 1 - hw/mips/mipssim.c | 1 - hw/misc/allwinner-r40-dramc.c | 20 +++++----- hw/misc/mips_itu.c | 4 +- hw/net/cadence_gem.c | 7 +--- hw/pci-host/bonito.c | 30 +++++++-------- hw/pci-host/sh_pci.c | 57 +++++++++++++---------------- hw/pci/pci.c | 25 +++++-------- hw/ppc/pnv.c | 26 +++---------- hw/ppc/pnv_xscom.c | 5 +-- hw/ppc/spapr_vio.c | 3 +- hw/s390x/css-bridge.c | 7 ++-- hw/s390x/sclpquiesce.c | 8 ++-- hw/scsi/virtio-scsi.c | 2 +- hw/sd/sdhci.c | 15 ++++++-- hw/sparc64/sun4u.c | 8 ++-- hw/virtio/virtio-pmem.c | 5 +-- system/memory_mapping.c | 17 ++++----- target/i386/arch_memory_mapping.c | 6 ++- target/mips/sysemu/cp0_timer.c | 1 - target/mips/tcg/sysemu/cp0_helper.c | 1 + target/mips/tcg/sysemu/tlb_helper.c | 1 - ui/input-legacy.c | 2 +- ui/input.c | 4 +- ui/vdagent.c | 2 +- util/cutils.c | 18 +++++---- .mailmap | 3 ++ 69 files changed, 222 insertions(+), 261 deletions(-)delete mode 100644
include/hw/mips/cpudevs.h