Eric Blake <[email protected]> writes: > 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.
Not even *this* construct, as git-grep shows. > Signed-off-by: Eric Blake <[email protected]> > Reviewed-by: Pavel Dovgalyuk <[email protected]> Reviewed-by: Markus Armbruster <[email protected]>
