Received: from eggs.gnu.org ([2001:4830:134:3::10]:38390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afvCl-0006Mi-OL for qemu-devel@nongnu.org; Tue, 15 Mar 2016 16:04:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afvCk-00083L-Vd for qemu-devel@nongnu.org; Tue, 15 Mar 2016 16:04:35 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:33457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afvCk-00083H-NS for qemu-devel@nongnu.org; Tue, 15 Mar 2016 16:04:34 -0400 Received: by mail-lf0-x231.google.com with SMTP id h198so3927172lfh.0 for ; Tue, 15 Mar 2016 13:04:34 -0700 (PDT) MIME-Version: 1.0 Sender: igor.rubinov@gmail.com In-Reply-To: <20160314074429.4980.34777.stgit@PASHA-ISP> References: <20160314074429.4980.34777.stgit@PASHA-ISP> From: Igor R Date: Tue, 15 Mar 2016 22:04:04 +0200 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v5 0/7] Deterministic replay extensions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , QEMU Developers > 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 Thanks for the great feature. A couple of questions: * Is it possible to enable/disable recording when QEMU is already running? I.e. is it ok to call replay_configure() or replay_enable() from the monitor? Would it be possible to replay such a log? * Currently, when running QEMU with the above drive configuration (even w/o icount), savevm command doesn't seem to work correctly, and subsequent loavm crashes QEMU. Is it just a bug or this feature doesn't support snapshots? * The replaying is much slower than the original scenario. Is it affected by icount shift? What shift values would allow "real time" speed? Thanks!