Fixes for "-device xyz,help" and updates to MAINTAINERS
Subsystems (4)
The following changes since commit fff352b9b6080e580aa1fadd29b4eccf4cb2922a:
Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2026-03-12 15:21:06 +0000)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2026-03-16
for you to fetch changes up to bc4ee6025a71290eb47d86c2c77eb1f40fbb6305:
MAINTAINERS: Add another reviewer to s390x boot (2026-03-16 11:36:32 +0100)
----------------------------------------------------------------
* Fix various crashes that can occur when starting QEMU with -device xyz,help
* Update various sections in the MAINTAINERS file
----------------------------------------------------------------
Alistair Francis (7):
hw/riscv: sifive_e: Don't call qdev_get_machine in soc init hw/riscv: microchip_pfsoc: Don't call qdev_get_machine in soc init hw/arm: xlnx-zynqmp: Don't call qdev_get_machine in soc init hw/arm: fsl-imx7: Don't call qdev_get_machine in soc init hw/arm: fsl-imx8mp: Don't call qdev_get_machine in soc init hw/arm: fsl-imx6: Don't call qdev_get_machine in soc init hw/acpi: generic_event_device: Don't call qdev_get_machine in initfn
Eric Farman (1):
MAINTAINERS: Add another reviewer to s390x boot
Jared Rossi (1):
MAINTAINERS: Update S390-ccw boot maintainers/reviewers
Thomas Huth (5):
target/xtensa/cpu: Move initialization of memory region to realize function target/mips/cpu: Move initialization of memory region to realize function
MAINTAINERS: Update the s390x maintainers
MAINTAINERS: Remove myself from various sections
MAINTAINERS: Downgrade the functional testing section to "Odd Fixes"
MAINTAINERS | 17 ++++++++--------- hw/acpi/generic_event_device.c | 5 +++-- hw/arm/fsl-imx6.c | 14 +++++++------- hw/arm/fsl-imx7.c | 19 +++++++++---------- hw/arm/fsl-imx8mp.c | 13 ++++++------- hw/arm/xlnx-zynqmp.c | 42 ++++++++++++++++++------------------------ hw/riscv/microchip_pfsoc.c | 7 +++++-- hw/riscv/sifive_e.c | 9 ++++++--- target/mips/cpu.c | 16 ++++++++-------- target/xtensa/cpu.c | 14 ++++++++------ 10 files changed, 78 insertions(+), 78 deletions(-)
[PULL 03/14] hw/riscv: sifive_e: Don't call qdev_get_machine in soc init
From: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the soc_init function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-riscv64 -S -display none -M virt -device riscv.sifive.e.soc,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the number of CPUs in the machine. So instead of setting the CPU num-harts in the init function let's set it in realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/riscv/sifive_e.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
hw/riscv/sifive_e.c +6 -3
@@ -178,12 +178,13 @@ type_init(sifive_e_machine_init_register_types)static void sifive_e_soc_init (Object *obj) { -MachineState *ms =MACHINE (qdev_get_machine ());SiFiveESoCState *s =RISCV_E_SOC (obj);object_initialize_child (obj,"cpus" , &s->cpus,TYPE_RISCV_HART_ARRAY ); -object_property_set_int (OBJECT (&s->cpus),"num-harts" , ms->smp.cpus, - &error_abort); +/* +* Set the `num-harts` property later as the machine is potentially not +* created yet. +*/ object_property_set_int (OBJECT (&s->cpus),"resetvec" ,0x1004 , &error_abort);object_initialize_child (obj,"riscv.sifive.e.gpio0" , &s->gpio,TYPE_SIFIVE_GPIO );
@@ -200,6 +201,8 @@ static void sifive_e_soc_realize(DeviceState *dev, Error **errp)object_property_set_str (OBJECT (&s->cpus),"cpu-type" , ms->cpu_type, &error_abort); +object_property_set_int (OBJECT (&s->cpus),"num-harts" , ms->smp.cpus, + &error_abort);sysbus_realize (SYS_BUS_DEVICE (&s->cpus), &error_fatal);/* Mask ROM */
Signature · 1 line
2.53.0
[PULL 05/14] hw/arm: xlnx-zynqmp: Don't call qdev_get_machine in soc init
In reply to Thomas HuthFrom: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the soc_init function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-aarch64 -S -display none -M virt -device xlnx-zynqmp,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the number of CPUs in the machine. So instead of initialising the CPUs in the SoC init let's instead do it in the realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/arm/xlnx-zynqmp.c | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-)
hw/arm/xlnx-zynqmp.c +18 -24
@@ -380,30 +380,15 @@ static void xlnx_zynqmp_create_unimp_mmio(XlnxZynqMPState *s)static void xlnx_zynqmp_init (Object *obj) { -MachineState *ms =MACHINE (qdev_get_machine ());XlnxZynqMPState *s =XLNX_ZYNQMP (obj);int i; -int num_apus =MIN (ms->smp.cpus,XLNX_ZYNQMP_NUM_APU_CPUS ); -int num_rpus =xlnx_zynqmp_get_rpu_number (ms);object_initialize_child (obj,"apu-cluster" , &s->apu_cluster,TYPE_CPU_CLUSTER );qdev_prop_set_uint32 (DEVICE (&s->apu_cluster),"cluster-id" ,0 ); -for (i =0 ; i < num_apus; i++) { -object_initialize_child (OBJECT (&s->apu_cluster),"apu-cpu[*]" , - &s->apu_cpu[i], -ARM_CPU_TYPE_NAME ("cortex-a53" )); - } -object_initialize_child (obj,"gic" , &s->gic,gic_class_name ()); -if (num_rpus) { -/* Do not create the rpu_gic if we don't have rpus */ -object_initialize_child (obj,"rpu_gic" , &s->rpu_gic, -gic_class_name ()); - } -for (i =0 ; i <XLNX_ZYNQMP_NUM_GEMS ; i++) {object_initialize_child (obj,"gem[*]" , &s->gem[i],TYPE_CADENCE_GEM ); object_initialize_child(obj, "gem-irq-orgate[*]",
@@ -453,15 +438,6 @@ static void xlnx_zynqmp_init(Object *obj)object_initialize_child (obj,"qspi-irq-orgate" , &s->qspi_irq_orgate,TYPE_OR_IRQ ); -if (num_rpus) { -for (i =0 ; i <ARRAY_SIZE (s->splitter); i++) { - g_autofree char *name = g_strdup_printf("irq-splitter%d", i); -object_initialize_child (obj, name, &s->splitter[i],TYPE_SPLIT_IRQ ); - } - } - - -for (i =0 ; i <XLNX_ZYNQMP_NUM_USB ; i++) {object_initialize_child (obj,"usb[*]" , &s->usb[i],TYPE_USB_DWC3 ); }
@@ -483,6 +459,24 @@ static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp) ram_size =memory_region_size (s->ddr_ram); +for (i =0 ; i < num_apus; i++) { +object_initialize_child (OBJECT (&s->apu_cluster),"apu-cpu[*]" , + &s->apu_cpu[i], +ARM_CPU_TYPE_NAME ("cortex-a53" )); + } + +if (num_rpus) { +/* Do not create the rpu_gic if we don't have rpus */ +object_initialize_child (OBJECT (dev),"rpu_gic" , &s->rpu_gic, +gic_class_name ()); + +for (i =0 ; i <ARRAY_SIZE (s->splitter); i++) { + g_autofree char *name = g_strdup_printf("irq-splitter%d", i); +object_initialize_child (OBJECT (dev), name, &s->splitter[i],TYPE_SPLIT_IRQ ); + } + } + +/* * Create the DDR Memory Regions. User friendly checks should happen at * the board level
Signature · 1 line
2.53.0
[PULL 09/14] hw/acpi: generic_event_device: Don't call qdev_get_machine in initfn
In reply to Thomas HuthFrom: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the acpi_ged_initfn function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-aarch64 -S -display none -M virt -device acpi-ged,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the ram slots of the machine. So instead of initialising the GED in the init let's instead do it in the realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/acpi/generic_event_device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
hw/acpi/generic_event_device.c +3 -2
@@ -506,6 +506,9 @@ static void acpi_ged_realize(DeviceState *dev, Error **errp)uint32_t ged_events;int i; +acpi_memory_hotplug_init (&s->container_memhp,OBJECT (dev), + &s->memhp_state,0 ); +if (pcihp_state->use_acpi_hotplug_bridge) { s->ged_event_bitmap |=ACPI_GED_PCI_HOTPLUG_EVT ; }
@@ -568,8 +571,6 @@ static void acpi_ged_initfn(Object *obj)memory_region_init (&s->container_memhp,OBJECT (dev),"memhp container" ,MEMORY_HOTPLUG_IO_LEN );sysbus_init_mmio (sbd, &s->container_memhp); -acpi_memory_hotplug_init (&s->container_memhp,OBJECT (dev), - &s->memhp_state,0 );memory_region_init_io (&ged_st->regs, obj, &ged_regs_ops, ged_st,TYPE_ACPI_GED "-regs" ,ACPI_GED_REG_COUNT );
Signature · 1 line
2.53.0
[PULL 07/14] hw/arm: fsl-imx8mp: Don't call qdev_get_machine in soc init
In reply to Thomas HuthFrom: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the soc_init function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-aarch64 -S -display none -M virt -device fsl-imx8mp,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the number of CPUs in the machine. So instead of initialising the CPUs in the SoC init let's instead do it in the realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/arm/fsl-imx8mp.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
hw/arm/fsl-imx8mp.c +6 -7
@@ -193,16 +193,9 @@ static const struct {static void fsl_imx8mp_init (Object *obj) { -MachineState *ms =MACHINE (qdev_get_machine ());FslImx8mpState *s =FSL_IMX8MP (obj); -const char *cpu_type = ms->cpu_type ?:ARM_CPU_TYPE_NAME ("cortex-a53" );int i; -for (i =0 ; i <MIN (ms->smp.cpus,FSL_IMX8MP_NUM_CPUS ); i++) { - g_autofree char *name = g_strdup_printf("cpu%d", i); -object_initialize_child (obj, name, &s->cpu[i], cpu_type); - } -object_initialize_child (obj,"gic" , &s->gic,gicv3_class_name ());object_initialize_child (obj,"ccm" , &s->ccm,TYPE_IMX8MP_CCM );
@@ -265,6 +258,7 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)MachineState *ms =MACHINE (qdev_get_machine ());FslImx8mpState *s =FSL_IMX8MP (dev);DeviceState *gicdev =DEVICE (&s->gic); +const char *cpu_type = ms->cpu_type ?:ARM_CPU_TYPE_NAME ("cortex-a53" );int i;if (ms->smp.cpus >FSL_IMX8MP_NUM_CPUS ) {
@@ -273,6 +267,11 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)return ; } +for (i =0 ; i < ms->smp.cpus; i++) { + g_autofree char *name = g_strdup_printf("cpu%d", i); +object_initialize_child (OBJECT (dev), name, &s->cpu[i], cpu_type); + } +/* CPUs */ for (i =0 ; i < ms->smp.cpus; i++) {/* On uniprocessor, the CBAR is set to 0 */
Signature · 1 line
2.53.0
[PULL 01/14] target/xtensa/cpu: Move initialization of memory region to realize function
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
When introspecting the xtensa CPUs from the command line, QEMU currently crashes:
$ ./qemu-system-xtensa -device dc233c-xtensa-cpu,help qemu-system-xtensa: ../../devel/qemu/system/physmem.c:1401: register_multipage: Assertion `num_pages' failed. Aborted (core dumped)
Move the initialization of the memory regions to the realize function to fix this problem.
Message-ID: <[email protected]>
--- target/xtensa/cpu.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
target/xtensa/cpu.c +8 -6
@@ -244,6 +244,14 @@ static void xtensa_cpu_realizefn(DeviceState *dev, Error **errp)Error *local_err =NULL ;#ifndef CONFIG_USER_ONLY +CPUXtensaState *env = &XTENSA_CPU (dev)->env; + + env->address_space_er =g_malloc (sizeof (*env->address_space_er)); + env->system_er =g_malloc (sizeof (*env->system_er)); +memory_region_init_io (env->system_er,OBJECT (dev),NULL , env,"er" , +UINT64_C (0x100000000 )); +address_space_init (env->address_space_er, env->system_er,"ER" ); +xtensa_irq_init (&XTENSA_CPU (dev)->env);#endif
@@ -269,12 +277,6 @@ static void xtensa_cpu_initfn(Object *obj) env->config = xcc->config;#ifndef CONFIG_USER_ONLY - env->address_space_er =g_malloc (sizeof (*env->address_space_er)); - env->system_er =g_malloc (sizeof (*env->system_er)); -memory_region_init_io (env->system_er, obj,NULL , env,"er" , -UINT64_C (0x100000000 )); -address_space_init (env->address_space_er, env->system_er,"ER" ); - cpu->clock =qdev_init_clock_in (DEVICE (obj),"clk-in" ,NULL , cpu,0 );clock_set_hz (cpu->clock, env->config->clock_freq_khz *1000 );#endif
Signature · 1 line
2.53.0
[PULL 02/14] target/mips/cpu: Move initialization of memory region to realize function
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
When introspecting the Loongson-3A4000 CPUs from the command line, QEMU currently crashes:
$ ./qemu-system-mips64el -device Loongson-3A4000-mips64-cpu,help qemu-system-mips64el: ../../devel/qemu/system/physmem.c:1401: register_multipage: Assertion `num_pages' failed. Aborted (core dumped)
Move the initialization of the memory regions to the realize function to fix this problem.
Message-ID: <[email protected]>
Message-ID: <[email protected]>
--- target/mips/cpu.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
target/mips/cpu.c +8 -8
@@ -460,6 +460,14 @@ static void mips_cpu_realizefn(DeviceState *dev, Error **errp)MIPSCPUClass *mcc =MIPS_CPU_GET_CLASS (dev);Error *local_err =NULL ; +#ifndef CONFIG_USER_ONLY +if (mcc->cpu_def->lcsr_cpucfg2 & (1 <<CPUCFG2_LCSRP )) { +memory_region_init_io (&env->iocsr.mr,OBJECT (cpu),NULL , + env,"iocsr" ,UINT64_MAX ); +address_space_init (&env->iocsr.as, &env->iocsr.mr,"IOCSR" ); + } +#endif +if (!clock_get (cpu->clock)) {#ifndef CONFIG_USER_ONLY if (!qtest_enabled ()) {
@@ -504,14 +512,6 @@ static void mips_cpu_initfn(Object *obj) cpu->count_div =clock_new (OBJECT (obj),"clk-div-count" ); env->count_clock =clock_new (OBJECT (obj),"clk-count" ); env->cpu_model = mcc->cpu_def; -#ifndef CONFIG_USER_ONLY -if (mcc->cpu_def->lcsr_cpucfg2 & (1 <<CPUCFG2_LCSRP )) { -memory_region_init_io (&env->iocsr.mr,OBJECT (cpu),NULL , - env,"iocsr" ,UINT64_MAX ); -address_space_init (&env->iocsr.as, - &env->iocsr.mr,"IOCSR" ); - } -#endif }static char *mips_cpu_type_name (const char *cpu_model)
Signature · 1 line
2.53.0
[PULL 08/14] hw/arm: fsl-imx6: Don't call qdev_get_machine in soc init
In reply to Thomas HuthFrom: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the soc_init function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-aarch64 -S -display none -M virt -device fsl-imx6,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the number of CPUs in the machine. So instead of initialising the CPUs in the SoC init let's instead do it in the realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/arm/fsl-imx6.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
hw/arm/fsl-imx6.c +7 -7
@@ -38,17 +38,10 @@static void fsl_imx6_init (Object *obj) { -MachineState *ms =MACHINE (qdev_get_machine ());FslIMX6State *s =FSL_IMX6 (obj);char name[NAME_SIZE ];int i; -for (i =0 ; i <MIN (ms->smp.cpus,FSL_IMX6_NUM_CPUS ); i++) { -snprintf (name,NAME_SIZE ,"cpu%d" , i); -object_initialize_child (obj, name, &s->cpu[i], -ARM_CPU_TYPE_NAME ("cortex-a9" )); - } -object_initialize_child (obj,"a9mpcore" , &s->a9mpcore,TYPE_A9MPCORE_PRIV );object_initialize_child (obj,"ccm" , &s->ccm,TYPE_IMX6_CCM );
@@ -119,6 +112,7 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp)unsigned int smp_cpus = ms->smp.cpus;DeviceState *mpcore =DEVICE (&s->a9mpcore);DeviceState *gic; +char name[NAME_SIZE ];if (smp_cpus >FSL_IMX6_NUM_CPUS ) { error_setg(errp, "%s: Only %d CPUs are supported (%d requested)",
@@ -126,6 +120,12 @@ static void fsl_imx6_realize(DeviceState *dev, Error **errp)return ; } +for (i =0 ; i < smp_cpus; i++) { +snprintf (name,NAME_SIZE ,"cpu%d" , i); +object_initialize_child (OBJECT (dev), name, &s->cpu[i], +ARM_CPU_TYPE_NAME ("cortex-a9" )); + } +for (i =0 ; i < smp_cpus; i++) {/* On uniprocessor, the CBAR is set to 0 */
Signature · 1 line
2.53.0
[PULL 12/14] MAINTAINERS: Remove myself from various sections
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
I likely won't have much time in the future for QEMU anymore, so remove myself from various sections that have already enough other maintainers / reviewers.
Message-ID: <[email protected]>
--- MAINTAINERS | 3 --- 1 file changed, 3 deletions(-)
MAINTAINERS +0 -3
@@ -67,7 +67,6 @@ F: */ Project policy and developer guides R: Alex Bennée <[email protected]> R: Daniel P. Berrangé <[email protected]> -R: Thomas Huth <[email protected]> R: Markus Armbruster <[email protected]> R: Philippe Mathieu-Daudé <[email protected]> W: https://www.qemu.org/docs/master/devel/index.html
@@ -4488,7 +4487,6 @@ Build and test automation, general continuous integration M: Alex Bennée <[email protected]> T: git https://gitlab.com/stsquad/qemu testing/next M: Philippe Mathieu-Daudé <[email protected]> -M: Thomas Huth <[email protected]> S: Maintained F: .github/workflows/lockdown.yml F: .gitlab-ci.yml
@@ -4585,7 +4583,6 @@ F: scripts/symlink-install-tree.py Top Level Makefile and configure M: Paolo Bonzini <[email protected]> R: Alex Bennée <[email protected]> -R: Thomas Huth <[email protected]> S: Maintained F: Makefile F: configure
Signature · 1 line
2.53.0
[PULL 10/14] MAINTAINERS: Update S390-ccw boot maintainers/reviewers
In reply to Thomas HuthFrom: Jared Rossi <[email protected]>
Christian Borntraeger is no longer active in this space. Promote myself to maintainer and demote Christian to reviewer.
Message-ID: <[email protected]>
Message-ID: <[email protected]>
--- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
@@ -1862,10 +1862,10 @@ T: git https://github.com/borntraeger/qemu.git s390-next L: [email protected] S390-ccw boot -M: Christian Borntraeger <[email protected]> M: Thomas Huth <[email protected]> -R: Jared Rossi <[email protected]> +M: Jared Rossi <[email protected]> R: Zhuoying Cai <[email protected]> +R: Christian Borntraeger <[email protected]> S: Supported F: hw/s390x/ipl.* F: pc-bios/s390-ccw/
Signature · 1 line
2.53.0
[PULL 13/14] MAINTAINERS: Downgrade the functional testing section to "Odd Fixes"
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
I won't have that much time for QEMU anymore in the future, so downgrade the status of the "functional testing framework" section to "Odd Fixes" to avoid wrong expectations. While we're at it, also switch to my other e-mail address here that I'm already using for the other sections where I am still listed as maintainer / reviewer.
Message-ID: <[email protected]>
--- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
@@ -4513,10 +4513,10 @@ F: tests/vm/freebsd W: https://cirrus-ci.com/github/qemu/qemu Functional testing framework -M: Thomas Huth <[email protected]> +M: Thomas Huth <[email protected]> R: Philippe Mathieu-Daudé <[email protected]> R: Daniel P. Berrange <[email protected]> -S: Maintained +S: Odd Fixes F: docs/devel/testing/functional.rst F: scripts/clean_functional_cache.py F: tests/functional/meson.build
Signature · 1 line
2.53.0
[PULL 11/14] MAINTAINERS: Update the s390x maintainers
In reply to Thomas HuthFrom: Thomas Huth <[email protected]>
I'm going to move to another project next month, so I will not have enough time to take care of s390x patches anymore. Fortunately, Cornelia volunteered to take over the job of collecting s390x patches, and Eric and Matthew offered help to back her up, so we can keep the "S390 general architecture support" section in the "supported" state. Thanks for your help, Cornelia, Eric and Matthew!
Message-ID: <[email protected]>
--- MAINTAINERS | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
MAINTAINERS +3 -2
@@ -102,7 +102,9 @@ T: git https://github.com/vivier/qemu.git trivial-patches Architecture support -------------------- S390 general architecture support -M: Thomas Huth <[email protected]> +M: Cornelia Huck <[email protected]> +M: Eric Farman <[email protected]> +M: Matthew Rosato <[email protected]> S: Supported F: configs/devices/s390x-softmmu/default.mak F: configs/targets/s390x-softmmu.mak
@@ -1862,7 +1864,6 @@ T: git https://github.com/borntraeger/qemu.git s390-next L: [email protected] S390-ccw boot -M: Thomas Huth <[email protected]> M: Jared Rossi <[email protected]> R: Zhuoying Cai <[email protected]> R: Christian Borntraeger <[email protected]>
Signature · 1 line
2.53.0
[PULL 14/14] MAINTAINERS: Add another reviewer to s390x boot
In reply to Thomas HuthFrom: Eric Farman <[email protected]>
Jason offered to help review this area of code; let's make sure he's notified of changes.
Message-ID: <[email protected]>
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -1866,6 +1866,7 @@ S390-ccw boot M: Jared Rossi <[email protected]> R: Zhuoying Cai <[email protected]> R: Christian Borntraeger <[email protected]> +R: Jason Herne <[email protected]> S: Supported F: hw/s390x/ipl.* F: pc-bios/s390-ccw/
Signature · 1 line
2.53.0
[PULL 06/14] hw/arm: fsl-imx7: Don't call qdev_get_machine in soc init
In reply to Thomas HuthFrom: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the soc_init function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-aarch64 -S -display none -M virt -device fsl-imx7,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the number of CPUs in the machine. So instead of initialising the CPUs in the SoC init let's instead do it in the realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/arm/fsl-imx7.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
hw/arm/fsl-imx7.c +9 -10
@@ -32,20 +32,10 @@static void fsl_imx7_init (Object *obj) { -MachineState *ms =MACHINE (qdev_get_machine ());FslIMX7State *s =FSL_IMX7 (obj);char name[NAME_SIZE ];int i; -/* -* CPUs -*/ -for (i =0 ; i <MIN (ms->smp.cpus,FSL_IMX7_NUM_CPUS ); i++) { -snprintf (name,NAME_SIZE ,"cpu%d" , i); -object_initialize_child (obj, name, &s->cpu[i], -ARM_CPU_TYPE_NAME ("cortex-a7" )); - } -/* * A7MPCORE */
@@ -179,6 +169,15 @@ static void fsl_imx7_realize(DeviceState *dev, Error **errp)return ; } +/* +* CPUs +*/ +for (i =0 ; i < smp_cpus; i++) { +snprintf (name,NAME_SIZE ,"cpu%d" , i); +object_initialize_child (OBJECT (dev), name, &s->cpu[i], +ARM_CPU_TYPE_NAME ("cortex-a7" )); + } +/* * CPUs */
Signature · 1 line
2.53.0
[PULL 04/14] hw/riscv: microchip_pfsoc: Don't call qdev_get_machine in soc init
In reply to Thomas HuthFrom: Alistair Francis <[email protected]>
Calling qdev_get_machine() in the soc_init function would result in the following assert
../hw/core/qdev.c:858: qdev_get_machine: Assertion `dev' failed.
when trying to run
./qemu-system-riscv64 -S -display none -M virt -device microchip.pfsoc,help
as the machine wasn't created yet. We call qdev_get_machine() to obtain the number of CPUs in the machine. So instead of setting the CPU num-harts in the init function let's set it in realise where the machine will exist.
Message-ID: <[email protected]>
--- hw/riscv/microchip_pfsoc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
hw/riscv/microchip_pfsoc.c +5 -2
@@ -143,7 +143,6 @@ static const MemMapEntry microchip_pfsoc_memmap[] = {static void microchip_pfsoc_soc_instance_init (Object *obj) { -MachineState *ms =MACHINE (qdev_get_machine ());MicrochipPFSoCState *s =MICROCHIP_PFSOC (obj);object_initialize_child (obj,"e-cluster" , &s->e_cluster,TYPE_CPU_CLUSTER );
@@ -162,7 +161,10 @@ static void microchip_pfsoc_soc_instance_init(Object *obj)object_initialize_child (OBJECT (&s->u_cluster),"u-cpus" , &s->u_cpus,TYPE_RISCV_HART_ARRAY ); -qdev_prop_set_uint32 (DEVICE (&s->u_cpus),"num-harts" , ms->smp.cpus -1 ); +/* +* Set the `num-harts` property later as the machine is potentially not +* created yet. +*/ qdev_prop_set_uint32 (DEVICE (&s->u_cpus),"hartid-base" ,1 );qdev_prop_set_string (DEVICE (&s->u_cpus),"cpu-type" ,TYPE_RISCV_CPU_SIFIVE_U54 );
@@ -204,6 +206,7 @@ static void microchip_pfsoc_soc_realize(DeviceState *dev, Error **errp)int i;sysbus_realize (SYS_BUS_DEVICE (&s->e_cpus), &error_abort); +qdev_prop_set_uint32 (DEVICE (&s->u_cpus),"num-harts" , ms->smp.cpus -1 );sysbus_realize (SYS_BUS_DEVICE (&s->u_cpus), &error_abort);/* * The cluster must be realized after the RISC-V hart array container,
Signature · 1 line
2.53.0
Peter Maydell
AppliedRe: [PULL 00/14] Fixes for "-device xyz, help" and updates to MAINTAINERS
In reply to Thomas HuthQuoted 9 lines · Thomas Huth
The following changes since commit
fff352b9b6080e580aa1fadd29b4eccf4cb2922a:Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging (2026-03-12 15:21:06 +0000)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2026-03-16
Quoted 7 lines
for you to fetch changes up to
bc4ee6025a71290eb47d86c2c77eb1f40fbb6305:
MAINTAINERS: Add another reviewer to s390x boot (2026-03-16 11:36:32 +0100)----------------------------------------------------------------
* Fix various crashes that can occur when starting QEMU with -device xyz,help
* Update various sections in theMAINTAINERSfile
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/11.0
for any user-visible changes.
-- PMM