You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/core
Peter Maydell 01941107eb hw/irq: New qemu_init_irq_child() function
The qemu_init_irq() function initializes a TYPE_IRQ QOM object.  The
caller is therefore responsible for eventually calling
qemu_free_irq() to unref (and thus free) it.

In many places where we want to initialize an IRQ we are in
the init/realize of some other QOM object; if we have a variant
of this function that calls object_initialize_child() then the
IRQ will be automatically cleaned up when its parent object is
destroyed, and we don't need to remember to manually free it.

Implement qemu_init_irq_child(), which is to qemu_init_irq()
what object_initialize_child() is to object_initialize().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250821154053.2417090-2-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
6 days ago
..
Kconfig hw/core: Add Enclave Image Format (EIF) related helpers 10 months ago
bus.c qom: Make InterfaceInfo[] uses const 5 months ago
clock-vmstate.c
clock.c qom: Have class_init() take a const data argument 5 months ago
cpu-common.c hw/core: Use qemu_log_trylock/unlock in cpu_common_reset_exit 1 week ago
cpu-system.c qemu: Convert target_words_bigendian() to TargetInfo API 2 months ago
cpu-user.c cpus: Remove CPUClass::has_work() handler 6 months ago
eif.c hw/core/eif: Use stateful qcrypto apis 9 months ago
eif.h hw/core: Add Enclave Image Format (EIF) related helpers 10 months ago
fw-path-provider.c
generic-loader.c qom: Have class_init() take a const data argument 5 months ago
gpio.c qdev: Use machine_get_container() 8 months ago
guest-loader.c qom: Have class_init() take a const data argument 5 months ago
guest-loader.h
hotplug.c
irq.c hw/irq: New qemu_init_irq_child() function 6 days ago
loader-fit.c include/system: Move exec/memory.h to system/memory.h 5 months ago
loader.c linux-user: Move ppc uabi/asm/elf.h workaround to osdep.h 2 weeks ago
machine-hmp-cmds.c hw/core/machine: Display CPU model name in 'info cpus' command 2 months ago
machine-qmp-cmds.c Accelerators patches 2 months ago
machine-smp.c i386/cpu: add has_caches flag to check smp_cache configuration 7 months ago
machine.c hw: add compat machines for 10.2 2 weeks ago
meson.build meson: remove lib{system, user}_ss aliases 4 months ago
nmi.c
null-machine.c include/system: Move exec/address-spaces.h to system/address-spaces.h 5 months ago
numa.c include: Rename sysemu/ -> system/ 9 months ago
or-irq.c qom: Have class_init() take a const data argument 5 months ago
platform-bus.c qom: Have class_init() take a const data argument 5 months ago
ptimer.c include/exec: Split out icount.h 5 months ago
qdev-clock.c clock: inline most of qdev_init_clocklist 9 months ago
qdev-fw.c
qdev-hotplug.c hw/qdev: Check machine_hotplug_handler in hotplug_unplug_allowed_common 8 months ago
qdev-prop-internal.h
qdev-properties-system.c hw/display: Allow injection of virtio-gpu EDID name 2 months ago
qdev-properties.c qdev-properties: Add DEFINE_PROP_ON_OFF_AUTO_BIT64() 2 months ago
qdev-user.c qdev: Implement qdev_create_fake_machine() for user emulation 8 months ago
qdev.c qom: Make InterfaceInfo[] uses const 5 months ago
register.c qom: Have class_init() take a const data argument 5 months ago
reset.c qom: Have class_init() take a const data argument 5 months ago
resetcontainer.c qom: Have class_init() take a const data argument 5 months ago
resettable.c
split-irq.c qom: Have class_init() take a const data argument 5 months ago
stream.c
sysbus-fdt.c vfio: Introduce new files for VFIORegion definitions and declarations 5 months ago
sysbus.c hw/core/sysbus: Introduce sysbus_mmio_map_name() helper 2 months ago
trace-events
trace.h
uboot_image.h
vm-change-state-handler.c system/runstate: add VM state change cb with return value 4 months ago
vmstate-if.c