aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>2015-09-17 19:24:33 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2015-11-06 10:16:02 +0100
commitb60c48a7019614902f2debe4d4181ec8cfa60e0d (patch)
tree954f4fdccaa789c4ada10e6746e279b2b4467d59 /vl.c
parent8eda206e09089914006bfbdd71467d5246c06e4a (diff)
downloadqemu-b60c48a7019614902f2debe4d4181ec8cfa60e0d.zip
qemu-b60c48a7019614902f2debe4d4181ec8cfa60e0d.tar.gz
qemu-b60c48a7019614902f2debe4d4181ec8cfa60e0d.tar.bz2
replay: shutdown event
This patch records and replays simulator shutdown event. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> Message-Id: <20150917162433.8676.32262.stgit@PASHA-ISP.def.inno> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 601ace2..f481a1e 100644
--- a/vl.c
+++ b/vl.c
@@ -122,6 +122,7 @@ int main(int argc, char **argv)
#include "qapi-event.h"
#include "exec/semihost.h"
#include "crypto/init.h"
+#include "sysemu/replay.h"
#define MAX_VIRTIO_CONSOLES 1
#define MAX_SCLP_CONSOLES 1
@@ -1803,6 +1804,7 @@ void qemu_system_killed(int signal, pid_t pid)
void qemu_system_shutdown_request(void)
{
trace_qemu_system_shutdown_request();
+ replay_shutdown_request();
shutdown_requested = 1;
qemu_notify_event();
}