replay: allow loading any snapshots before recording
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Wed, 12 Sep 2018 08:19:39 +0000 (11:19 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2018 17:08:58 +0000 (19:08 +0200)
commitbb3d7702e8dd0fd84c9496e226b46ce964b76e13
tree3b688f6c0728834008a2fa4596ab638940a53214
parentf9f1f56e4da088b993ce28775c271d5bcdcf49ae
replay: allow loading any snapshots before recording

This patch enables using -loadvm in recording mode to allow starting
the execution recording from any of the available snapshots.
It also fixes loading of the record/replay state, therefore snapshots
created in replay mode may also be used for starting the new recording.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <20180912081939.3228.56131.stgit@pasha-VirtualBox>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
replay/replay-snapshot.c
vl.c