qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/5] Deterministic replay extensions
@ 2016-03-01 11:07 Pavel Dovgalyuk
  2016-03-01 11:07 ` [Qemu-devel] [PATCH v3 1/5] replay: character devices Pavel Dovgalyuk
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Pavel Dovgalyuk @ 2016-03-01 11:07 UTC (permalink / raw)
  To: qemu-devel
  Cc: edgar.iglesias, peter.maydell, igor.rubinov, alex.bennee,
	mark.burton, real, hines, batuzovk, maria.klimushenkova,
	pavel.dovgaluk, pbonzini, kwolf, stefanha, fred.konrad

This set of patches is related to the reverse execution and deterministic 
replay of qemu execution. It includes recording and replaying of serial devices
and block devices operations.

With these patches one can record and deterministically replay behavior
of the system with connected disk drives and serial communication ports
(e.g., telnet terminal).

Patches for deterministic replay of the block devices intercept calls of
bdrv coroutine functions at the top of block drivers stack.
To record and replay block operations the drive must be configured
as following:
 -drive file=disk.qcow,if=none,id=img-direct
 -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay
 -device ide-hd,drive=img-blkreplay

blkreplay driver should be inserted between disk image and virtual driver
controller. Therefore all disk requests may be recorded and replayed.

v3 changes:
 - introduced bdrv_flush callback for block drivers
 - introduced block driver for recording block operations (as suggested by Kevin Wolf)
 - added documentation for block record/replay

v2 changes:
 - removed obsolete call of qemu_clock_warp
 - fixed record/replay of aio_cancel
 - simplified call sequence for blk_aio_ functions in non-replay mode (as suggested by Kevin Wolf)

---

Pavel Dovgalyuk (5):
      replay: character devices
      icount: remove obsolete warp call
      replay: introduce new checkpoint for icount warp
      block: add flush callback
      replay: introduce block devices record/replay


 block/Makefile.objs       |    2 -
 block/blkreplay.c         |  156 +++++++++++++++++++++++++++++++++++++++++++++
 block/io.c                |    6 ++
 cpus.c                    |   10 +--
 docs/replay.txt           |   20 ++++++
 gdbstub.c                 |    2 -
 include/block/block_int.h |    7 ++
 include/qemu/timer.h      |    3 +
 include/sysemu/char.h     |   26 ++++++++
 include/sysemu/replay.h   |   15 ++++
 main-loop.c               |    2 -
 qemu-char.c               |   56 ++++++++++++++--
 qemu-timer.c              |    2 -
 replay/Makefile.objs      |    1 
 replay/replay-char.c      |   97 ++++++++++++++++++++++++++++
 replay/replay-events.c    |   41 ++++++++++--
 replay/replay-internal.h  |   16 +++++
 replay/replay.c           |   25 +++++++
 stubs/clock-warp.c        |    2 -
 stubs/replay.c            |    4 +
 20 files changed, 469 insertions(+), 24 deletions(-)
 create mode 100755 block/blkreplay.c
 create mode 100755 replay/replay-char.c

-- 
Pavel Dovgalyuk

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-03-10 10:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 11:07 [Qemu-devel] [PATCH v3 0/5] Deterministic replay extensions Pavel Dovgalyuk
2016-03-01 11:07 ` [Qemu-devel] [PATCH v3 1/5] replay: character devices Pavel Dovgalyuk
2016-03-01 11:07 ` [Qemu-devel] [PATCH v3 2/5] icount: remove obsolete warp call Pavel Dovgalyuk
2016-03-09 12:05   ` Paolo Bonzini
2016-03-01 11:07 ` [Qemu-devel] [PATCH v3 3/5] replay: introduce new checkpoint for icount warp Pavel Dovgalyuk
2016-03-09 12:03   ` Paolo Bonzini
2016-03-10  9:10     ` Pavel Dovgalyuk
2016-03-10 10:24       ` Paolo Bonzini
2016-03-01 11:07 ` [Qemu-devel] [PATCH v3 4/5] block: add flush callback Pavel Dovgalyuk
2016-03-09 11:25   ` Kevin Wolf
2016-03-01 11:08 ` [Qemu-devel] [PATCH v3 5/5] replay: introduce block devices record/replay Pavel Dovgalyuk
2016-03-09 11:43   ` Kevin Wolf
2016-03-10  6:15     ` Pavel Dovgalyuk
2016-03-07  7:21 ` [Qemu-devel] [PATCH v3 0/5] Deterministic replay extensions dovgaluk

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).