replay: create temporary snapshot at debugger connection
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Sat, 3 Oct 2020 17:14:01 +0000 (20:14 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 6 Oct 2020 06:34:49 +0000 (08:34 +0200)
commit56357d80fc713367ace8251d1350a490e204bc3a
tree4d33beed0a2a1adf413af242f4711d925f517920
parent9a608af3c0f9856e396d12c3ec8985d70c548a54
replay: create temporary snapshot at debugger connection

When record/replay does not uses overlays for storing the snapshots,
user is not capable of issuing reverse debugging commands.
This patch adds creation of the VM snapshot on the temporary
overlay image, when the debugger connects to QEMU.
Therefore the execution can be rewind to the moment
of the debugger connection while debugging the virtual machine.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
--

v6:
 - dropped unused error processing (suggested by Philippe Mathieu-Daudé)
Message-Id: <160174524096.12451.11651270339216758643.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
gdbstub.c
include/sysemu/replay.h
replay/replay-debugging.c