From: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, mst@redhat.com, jasowang@redhat.com,
quintela@redhat.com, agraf@suse.de, pbonzini@redhat.com,
david@gibson.dropbear.id.au
Subject: [Qemu-devel] [PATCH v2 00/10] replay additions
Date: Thu, 15 Sep 2016 12:00:43 +0300 [thread overview]
Message-ID: <20160915090042.6440.22516.stgit@PASHA-ISP> (raw)
This set of patches includes several fixes for replay and
adds network record/replay for network devices. It also makes possible
saving/restoring vmstate in replay mode.
Record and replay for network interactions is performed with the network filter.
Each backend must have its own instance of the replay filter as follows:
-netdev user,id=net1 -device rtl8139,netdev=net1
-object filter-replay,id=replay,netdev=net1
This patches add overlay option for blkreplay block driver. Using persistent
overlay file allows saving and reloading VM snapshots in replay mode.
Replay mechanism automatically creates one snapshot named 'replay_init' to
allow rewinding execution while replaying.
Overlay file may be specified as follows:
-drive file=disk.qcow,if=none,id=img-direct
-drive driver=blkreplay,if=none,image=img-direct,overlay=overlay.qcow2,id=img-blkreplay
-device ide-hd,drive=img-blkreplay
This set of patches includes fixes and additions for icount and
record/replay implementation:
- Enabling VM start/stop in replay mode
- Adding network interaction record/replay
- Adding overlay option for blkreplay filter
- Fixes of the vmstate for several virtual devices
---
Pavel Dovgalyuk (10):
record/replay: add network support
block: set snapshot option for block devices in blkreplay module
block: don't make snapshots for filters
replay: save/load initial state
replay: move internal data to the structure
replay: vmstate for replay module
replay: allow replay stopping and restarting
kvmvapic: fix state change handler
pcspk: adding vmstate for save/restore
integratorcp: adding vmstate for save/restore
block/blkreplay.c | 132 +++++++++++++++++++++++++++++++++++++++++++---
block/snapshot.c | 3 +
cpus.c | 1
docs/replay.txt | 22 ++++++++
hw/arm/integratorcp.c | 62 ++++++++++++++++++++++
hw/audio/pcspk.c | 17 +++++-
hw/i386/kvmvapic.c | 1
include/sysemu/replay.h | 26 +++++++++
net/Makefile.objs | 1
net/filter-replay.c | 90 +++++++++++++++++++++++++++++++
replay/Makefile.objs | 2 +
replay/replay-events.c | 21 +++++++
replay/replay-internal.c | 19 +++----
replay/replay-internal.h | 26 +++++++--
replay/replay-net.c | 110 ++++++++++++++++++++++++++++++++++++++
replay/replay-snapshot.c | 72 +++++++++++++++++++++++++
replay/replay-time.c | 2 -
replay/replay.c | 17 +++---
stubs/replay.c | 5 ++
vl.c | 9 ++-
20 files changed, 599 insertions(+), 39 deletions(-)
create mode 100644 net/filter-replay.c
create mode 100644 replay/replay-net.c
create mode 100644 replay/replay-snapshot.c
--
Pavel Dovgalyuk
next reply other threads:[~2016-09-15 9:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 9:00 Pavel Dovgalyuk [this message]
2016-09-15 9:00 ` [Qemu-devel] [PATCH v2 01/10] record/replay: add network support Pavel Dovgalyuk
2016-09-15 9:00 ` [Qemu-devel] [PATCH v2 02/10] block: set snapshot option for block devices in blkreplay module Pavel Dovgalyuk
2016-09-15 9:25 ` Paolo Bonzini
2016-09-15 9:36 ` Paolo Bonzini
2016-09-16 7:55 ` Pavel Dovgalyuk
2016-09-16 9:28 ` Paolo Bonzini
2016-09-16 9:36 ` Pavel Dovgalyuk
2016-09-16 9:49 ` Paolo Bonzini
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 03/10] block: don't make snapshots for filters Pavel Dovgalyuk
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 04/10] replay: save/load initial state Pavel Dovgalyuk
2016-09-15 9:25 ` Paolo Bonzini
2016-09-16 7:56 ` Pavel Dovgalyuk
2016-09-16 9:29 ` Paolo Bonzini
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 05/10] replay: move internal data to the structure Pavel Dovgalyuk
2016-09-15 9:34 ` Paolo Bonzini
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 06/10] replay: vmstate for replay module Pavel Dovgalyuk
2016-09-15 9:37 ` Paolo Bonzini
2016-09-16 7:36 ` Pavel Dovgalyuk
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 07/10] replay: allow replay stopping and restarting Pavel Dovgalyuk
2016-09-15 9:38 ` Paolo Bonzini
2016-09-16 6:35 ` Pavel Dovgalyuk
2016-09-16 8:55 ` Paolo Bonzini
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 08/10] kvmvapic: fix state change handler Pavel Dovgalyuk
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 09/10] pcspk: adding vmstate for save/restore Pavel Dovgalyuk
2016-09-15 9:01 ` [Qemu-devel] [PATCH v2 10/10] integratorcp: " Pavel Dovgalyuk
2016-09-15 9:12 ` [Qemu-devel] [PATCH v2 00/10] replay additions Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160915090042.6440.22516.stgit@PASHA-ISP \
--to=pavel.dovgaluk@ispras.ru \
--cc=agraf@suse.de \
--cc=david@gibson.dropbear.id.au \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).