]> Git Repo - qemu.git/commit - replay/replay-internal.h
shutdown: Preserve shutdown cause through replay
authorEric Blake <[email protected]>
Mon, 15 May 2017 21:41:12 +0000 (16:41 -0500)
committerMarkus Armbruster <[email protected]>
Tue, 23 May 2017 11:28:17 +0000 (13:28 +0200)
commit802f045a5f61b781df55e4492d896b4d20503ba7
tree69a69ba0835eb19dfa9d4f06944ed09def8d2e20
parentaedbe19297907143f17b733a7ff0e0534377bed1
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 <[email protected]>
Reviewed-by: Pavel Dovgalyuk <[email protected]>
Message-Id: <20170515214114[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
include/sysemu/replay.h
replay/replay-internal.h
replay/replay.c
vl.c
This page took 0.026125 seconds and 4 git commands to generate.