]> git.ipfire.org Git - thirdparty/qemu.git/commit
esp.c: add asc_mode property to indicate the current ESP mode
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 11 Jul 2025 20:46:35 +0000 (21:46 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 14 Jul 2025 22:25:17 +0000 (00:25 +0200)
commitab1207401edc19d17fad6cb473cd6beae31b1dd1
tree2c55e0707b2468d02b73d94af09d12ecaee2dbbe
parent28a579a349015a7ed5a57cb4bdcdc5c60ba6b6fc
esp.c: add asc_mode property to indicate the current ESP mode

Add a new asc_mode property to ESPState which indicates the current mode of
the ESP and update the ESP state machine accordingly.

Bump the vmstate version and include migration logic to ensure that asc_mode
is set to initiator mode such that any commands in progress will always
continue.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250711204636.542964-7-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/scsi/esp.c
include/hw/scsi/esp.h