qemu/hw/s390x
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
..
3270-ccw.c
ap-bridge.c
ap-device.c
ccw-device.c hw/s390/ccw-device: Convert to three-phase reset 2024-09-13 15:31:43 +01:00
ccw-device.h s390x/css: Make CCWDeviceClass::realize return bool 2024-06-24 08:03:33 +02:00
cpu-topology.c qapi/machine: Rename CpuS390* to S390Cpu*, and drop 'prefix' 2024-09-10 13:22:47 +02:00
css-bridge.c
css.c
event-facility.c hw: Use device_class_set_legacy_reset() instead of opencoding 2024-09-13 15:31:44 +01:00
ipl.c hw: Use device_class_set_legacy_reset() instead of opencoding 2024-09-13 15:31:44 +01:00
ipl.h
Kconfig
meson.build
s390-ccw.c s390x/css: Make S390CCWDeviceClass::realize return bool 2024-06-24 08:03:33 +02:00
s390-pci-bus.c hw: Use device_class_set_legacy_reset() instead of opencoding 2024-09-13 15:31:44 +01:00
s390-pci-inst.c
s390-pci-kvm.c
s390-pci-vfio.c
s390-skeys-kvm.c
s390-skeys.c hw/s390x: Introduce s390_skeys_get|set() helpers 2024-06-19 12:42:03 +02:00
s390-stattrib-kvm.c
s390-stattrib.c
s390-virtio-ccw.c reset: Use ResetType for qemu_devices_reset() and MachineClass::reset() 2024-09-24 11:33:34 +02:00
s390-virtio-hcall.c
s390-virtio-hcall.h
sclp.c
sclpcpu.c
sclpquiesce.c hw: Use device_class_set_legacy_reset() instead of opencoding 2024-09-13 15:31:44 +01:00
tod-kvm.c
tod-tcg.c
tod.c
trace-events hw/s390x: Introduce s390_skeys_get|set() helpers 2024-06-19 12:42:03 +02:00
trace.h
vhost-scsi-ccw.c
vhost-user-fs-ccw.c
vhost-vsock-ccw.c
virtio-ccw-9p.c
virtio-ccw-balloon.c
virtio-ccw-blk.c
virtio-ccw-crypto.c
virtio-ccw-gpu.c
virtio-ccw-input.c
virtio-ccw-net.c
virtio-ccw-rng.c
virtio-ccw-scsi.c
virtio-ccw-serial.c
virtio-ccw.c hw/s390/virtio-ccw: Convert to three-phase reset 2024-09-13 15:31:43 +01:00
virtio-ccw.h hw/s390/virtio-ccw: Convert to three-phase reset 2024-09-13 15:31:43 +01:00