Re: [Qemu-devel] [PATCH v7 4/5] shutdown: Preserve shutdown cause through replay

2017-05-10 Thread Pavel Dovgalyuk
> -Original Message- > From: Eric Blake [mailto:ebl...@redhat.com] > Sent: Tuesday, May 09, 2017 12:20 AM > To: qemu-devel@nongnu.org > Cc: arm...@redhat.com; berra...@redhat.com; alistair.fran...@xilinx.com; > Pavel Dovgalyuk; > Paolo Bonzini > Subject: [PATCH v7 4/5] shutdown: Preserve

[Qemu-devel] [PATCH v7 4/5] shutdown: Preserve shutdown cause through replay

2017-05-08 Thread Eric Blake
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