Received: from eggs.gnu.org ([2001:4830:134:3::10]:58382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acpTo-0003uY-QF for qemu-devel@nongnu.org; Mon, 07 Mar 2016 02:21:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acpTl-0006cv-Je for qemu-devel@nongnu.org; Mon, 07 Mar 2016 02:21:24 -0500 Received: from smtp.ispras.ru ([83.149.199.79]:35611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acpTl-0006bN-BW for qemu-devel@nongnu.org; Mon, 07 Mar 2016 02:21:21 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Mon, 07 Mar 2016 10:21:17 +0300 From: dovgaluk In-Reply-To: <20160301110732.10104.2019.stgit@PASHA-ISP> References: <20160301110732.10104.2019.stgit@PASHA-ISP> Message-ID: <3695192b18b2e9278ee4088ad46f1a66@ispras.ru> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v3 0/5] Deterministic replay extensions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, igor.rubinov@gmail.com, mark.burton@greensocs.com, real@ispras.ru, hines@cert.org, qemu-devel@nongnu.org, kwolf@redhat.com, maria.klimushenkova@ispras.ru, stefanha@redhat.com, pbonzini@redhat.com, batuzovk@ispras.ru, alex.bennee@linaro.org, fred.konrad@greensocs.com Ping? Pavel Dovgalyuk Pavel Dovgalyuk =D0=BF=D0=B8=D1=81=D0=B0=D0=BB 2016-03-01 14:07: > This set of patches is related to the reverse execution and=20 > deterministic > replay of qemu execution. It includes recording and replaying of serial= =20 > devices > and block devices operations. >=20 > 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). >=20 > Patches for deterministic replay of the block devices intercept calls=20 > 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=3Ddisk.qcow,if=3Dnone,id=3Dimg-direct > -drive driver=3Dblkreplay,if=3Dnone,image=3Dimg-direct,id=3Dimg-blkrep= lay > -device ide-hd,drive=3Dimg-blkreplay >=20 > blkreplay driver should be inserted between disk image and virtual=20 > driver > controller. Therefore all disk requests may be recorded and replayed. >=20 > 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 >=20 > 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) >=20 > --- >=20 > 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 >=20 >=20 > block/Makefile.objs | 2 - > block/blkreplay.c | 156=20 > +++++++++++++++++++++++++++++++++++++++++++++ > 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