replay: fix replay shutdown
commite957ad8aefa2a426c607683d4cac24bcee09ede4
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Thu, 25 Jul 2019 08:44:32 +0000 (25 11:44 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:26:21 +0000 (20 17:26 +0200)
treeced2339b82f3a6271af14d0e57931b9ea3f761f4
parentdcb1578069dd072f9aec74e3024cadb9ed0f3aae
replay: fix replay shutdown

This patch fixes shutdown of the replay process, which is terminated with
the assert when shutdown event is read from the log.
replay_finish_event reads new data_kind and therefore the value of data_kind
should be preserved to be valid at qemu_system_shutdown_request call.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <156404427238.18669.12378772823692338069.stgit@pasha-Precision-3630-Tower>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
replay/replay.c