]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/remote/message.c: Don't directly invoke DeviceClass:reset
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 Aug 2024 16:52:46 +0000 (17:52 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 19 Aug 2024 22:38:48 +0000 (00:38 +0200)
commit7d3a421feab29c03601813c8a0f98d5b2fd4420a
treee8bca79dd8b3de393dd14c3bd604c99e1212c64c
parentdfad8421af474a38e272cdb19ae3c8e778acf820
hw/remote/message.c: Don't directly invoke DeviceClass:reset

Directly invoking the DeviceClass::reset method is a bad idea,
because if the device is using three-phase reset then it relies on
transitional reset machinery which is likely to disappear at some
point.

Reset the device in the standard way, by calling device_cold_reset().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240813165250.2717650-7-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/remote/message.c