qemu/system
Juraj Marcin 1b063fe2df reset: Use ResetType for qemu_devices_reset() and MachineClass::reset()
Currently, both qemu_devices_reset() and MachineClass::reset() use
ShutdownCause for the reason of the reset. However, the Resettable
interface uses ResetState, so ShutdownCause needs to be translated to
ResetType somewhere. Translating it qemu_devices_reset() makes adding
new reset types harder, as they cannot always be matched to a single
ShutdownCause here, and devices may need to check the ResetType to
determine what to reset and if to reset at all.

This patch moves this translation up in the call stack to
qemu_system_reset() and updates all MachineClass children to use the
ResetType instead.

Message-ID: <20240904103722.946194-2-jmarcin@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Juraj Marcin <jmarcin@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
2024-09-24 11:33:34 +02:00
..
arch_init.c
async-teardown.c qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd() 2024-08-05 08:21:59 +10:00
balloon.c
bootdevice.c
cpu-throttle.c system: improve migration debug 2024-09-09 10:55:40 -04:00
cpu-timers.c
cpus.c qmp: Fix higher half vaddrs for [p]memsave 2024-08-05 09:34:34 +02:00
datadir.c
device_tree-stub.c
device_tree.c
dirtylimit.c
dma-helpers.c
globals.c
ioport.c
main.c
memory_ldst.c.inc
memory_mapping.c system/memory_mapping: make range overlap check more readable 2024-07-23 20:30:36 +02:00
memory.c softmmu: Support concurrent bounce buffers 2024-09-09 10:55:39 -04:00
meson.build
physmem.c softmmu/physmem.c: Keep transaction attribute in address_space_map() 2024-09-18 14:27:39 -04:00
qdev-monitor.c system: Enable the device aliases for or1k, too 2024-09-17 10:50:39 +02:00
qemu-seccomp.c seccomp: Remove check for CRIS host 2024-09-13 20:11:13 +02:00
qtest.c
rtc.c system: replace assert(0) with g_assert_not_reached() 2024-09-13 20:12:16 +02:00
runstate-action.c
runstate-hmp-cmds.c
runstate.c reset: Use ResetType for qemu_devices_reset() and MachineClass::reset() 2024-09-24 11:33:34 +02:00
tpm-hmp-cmds.c
tpm.c
trace-events system: improve migration debug 2024-09-09 10:55:40 -04:00
trace.h
vl.c qapi/ui: Drop temporary 'prefix' 2024-09-10 13:22:47 +02:00
watchpoint.c