From patchwork Tue Sep 17 11:57:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Dovgalyuk X-Patchwork-Id: 11148645 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4AEFF1599 for ; Tue, 17 Sep 2019 12:00:24 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2B677214AF for ; Tue, 17 Sep 2019 12:00:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B677214AF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:44904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAC9e-0005j0-CS for patchwork-qemu-devel@patchwork.kernel.org; Tue, 17 Sep 2019 08:00:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59103) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAC7B-0003s4-5F for qemu-devel@nongnu.org; Tue, 17 Sep 2019 07:57:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iAC7A-0001Ne-0N for qemu-devel@nongnu.org; Tue, 17 Sep 2019 07:57:48 -0400 Received: from mail.ispras.ru ([83.149.199.45]:42136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iAC79-0001N3-Ot for qemu-devel@nongnu.org; Tue, 17 Sep 2019 07:57:47 -0400 Received: from [127.0.1.1] (unknown [85.142.117.226]) by mail.ispras.ru (Postfix) with ESMTPSA id D5F475400BA; Tue, 17 Sep 2019 14:57:45 +0300 (MSK) From: Pavel Dovgalyuk To: qemu-devel@nongnu.org Date: Tue, 17 Sep 2019 14:57:45 +0300 Message-ID: <156872146565.1757.3033215873677512474.stgit@pasha-Precision-3630-Tower> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 83.149.199.45 Subject: [Qemu-devel] [for-4.2 PATCH 0/6] Block-related record/replay fixes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, peter.maydell@linaro.org, pavel.dovgaluk@ispras.ru, pbonzini@redhat.com, quintela@redhat.com, ciro.santilli@gmail.com, jasowang@redhat.com, crosthwaite.peter@gmail.com, armbru@redhat.com, mreitz@redhat.com, alex.bennee@linaro.org, maria.klimushenkova@ispras.ru, mst@redhat.com, kraxel@redhat.com, boost.lists@gmail.com, thomas.dullien@googlemail.com, dovgaluk@ispras.ru, artem.k.pisarenko@gmail.com, dgilbert@redhat.com, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" The set of patches include the block-related updates of the record/replay icount feature: - application of 'snapshot' option on the file layer instead of the top one: command line and documentation fix - implementation of bdrv_snapshot_goto for blkreplay driver - start/stop fix in replay mode with attached block devices - record/replay of bh oneshot events, used in the block layer --- Pavel Dovgaluk (6): block: implement bdrv_snapshot_goto for blkreplay replay: disable default snapshot for record/replay replay: update docs for record/replay with block devices replay: don't drain/flush bdrv queue while RR is working replay: finish record/replay before closing the disks replay: add BH oneshot event for block layer block/blkreplay.c | 8 ++++++++ block/block-backend.c | 9 ++++++--- block/io.c | 32 ++++++++++++++++++++++++++++++-- block/iscsi.c | 5 +++-- block/nfs.c | 6 ++++-- block/null.c | 4 +++- block/nvme.c | 6 ++++-- block/rbd.c | 5 +++-- block/vxhs.c | 5 +++-- cpus.c | 2 -- docs/replay.txt | 12 +++++++++--- include/sysemu/replay.h | 4 ++++ replay/replay-events.c | 16 ++++++++++++++++ replay/replay-internal.h | 1 + replay/replay.c | 2 ++ stubs/Makefile.objs | 1 + stubs/replay-user.c | 9 +++++++++ vl.c | 11 +++++++++-- 18 files changed, 115 insertions(+), 23 deletions(-) create mode 100644 stubs/replay-user.c