qemu/hw/remote
Peter Maydell dfa6ba6bae Replace use of qdev_reset_all() with device_cold_reset()
The legacy function qdev_reset_all() performs a recursive reset,
starting from a qdev.  However, it does not permit any of the devices
in the tree to use three-phase reset, because device reset goes
through the device_legacy_reset() function that only calls the single
DeviceClass::reset method.

Switch to using the device_cold_reset() function instead.  This also
performs a recursive reset, where first the children are reset and
then finally the parent, but it uses the new (...in 2020...)
Resettable mechanism, which supports both the old style single-reset
method and also the new 3-phase reset handling.

This commit changes the five remaining uses of this function.

Commit created with:
 sed -i -e 's/qdev_reset_all/device_cold_reset/g' hw/i386/xen/xen_platform.c hw/input/adb.c hw/remote/vfio-user-obj.c hw/s390x/s390-virtio-ccw.c hw/usb/dev-uas.c

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2022-12-16 15:55:32 +00:00
..
iohub.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
iommu.c Use g_new() & friends where that makes obvious sense 2022-10-04 00:10:11 +02:00
Kconfig vfio-user: build library 2022-06-15 16:42:33 +01:00
machine.c vfio-user: handle device interrupts 2022-06-15 16:43:42 +01:00
memory.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
meson.build vfio-user: IOMMU support for remote device 2022-06-15 16:43:42 +01:00
message.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
mpqemu-link.c QIOChannel: Add flags on io_writev and introduce io_flush callback 2022-05-16 13:56:24 +01:00
proxy-memory-listener.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
proxy.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
remote-obj.c Remove qemu-common.h include from most units 2022-04-06 14:31:55 +02:00
trace-events vfio-user: handle device interrupts 2022-06-15 16:43:42 +01:00
trace.h multi-process: define MPQemuMsg format and transmission functions 2021-02-10 09:23:28 +00:00
vfio-user-obj.c Replace use of qdev_reset_all() with device_cold_reset() 2022-12-16 15:55:32 +00:00