qemu-patch-raspberry4/replay
Eric Blake 802f045a5f shutdown: Preserve shutdown cause through replay
With the recent addition of ShutdownCause, we want to be able to pass
a cause through any shutdown request, and then faithfully replay that
cause when later replaying the same sequence.  The easiest way is to
expand the reply event mechanism to track a series of values for
EVENT_SHUTDOWN, one corresponding to each value of ShutdownCause.

We are free to change the replay stream as needed, since there are
already no guarantees about being able to use a replay stream by
any other version of qemu than the one that generated it.

The cause is not actually fed back until the next patch changes the
signature for requesting a shutdown; a TODO marks that upcoming change.

Yes, this uses the gcc/clang extension of a ranged case label,
but this is not the first time we've used non-C99 constructs.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20170515214114.15442-4-eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2017-05-23 13:28:17 +02:00
..
Makefile.objs replay: add record/replay for audio passthrough 2017-03-01 15:11:44 +01:00
replay-audio.c replay: add record/replay for audio passthrough 2017-03-01 15:11:44 +01:00
replay-char.c char: rename CharDriverState Chardev 2017-01-27 18:07:59 +01:00
replay-events.c record/replay: add network support 2017-01-06 10:38:00 +08:00
replay-input.c replay: Use new QAPI cloning 2016-07-06 10:52:04 +02:00
replay-internal.c replay: assert time only goes forward 2017-04-10 10:23:38 +01:00
replay-internal.h shutdown: Preserve shutdown cause through replay 2017-05-23 13:28:17 +02:00
replay-net.c record/replay: add network support 2017-01-06 10:38:00 +08:00
replay-snapshot.c migration: Pass Error ** argument to {save,load}_vmstate 2017-05-17 12:04:59 +02:00
replay-time.c replay: move internal data to the structure 2016-09-27 11:57:30 +02:00
replay.c shutdown: Preserve shutdown cause through replay 2017-05-23 13:28:17 +02:00