From patchwork Wed May 4 09:38:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Dovgalyuk X-Patchwork-Id: 1626264 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4KtYHy1S8zz9s09 for ; Wed, 4 May 2022 20:40:14 +1000 (AEST) Received: from localhost ([::1]:53984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmCQV-0003eG-S4 for incoming@patchwork.ozlabs.org; Wed, 04 May 2022 06:40:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmBTH-00049v-K6 for qemu-devel@nongnu.org; Wed, 04 May 2022 05:38:59 -0400 Received: from mail.ispras.ru ([83.149.199.84]:37070) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmBTF-0005sy-LI for qemu-devel@nongnu.org; Wed, 04 May 2022 05:38:59 -0400 Received: from [127.0.1.1] (unknown [85.142.117.226]) by mail.ispras.ru (Postfix) with ESMTPSA id 73F0B4076253; Wed, 4 May 2022 09:38:49 +0000 (UTC) Subject: [PATCH v2 0/9] Record/replay refactoring and stuff From: Pavel Dovgalyuk To: qemu-devel@nongnu.org Cc: pavel.dovgalyuk@ispras.ru, pbonzini@redhat.com, alex.bennee@linaro.org, crosa@redhat.com, f4bug@amsat.org Date: Wed, 04 May 2022 12:38:49 +0300 Message-ID: <165165712922.1062896.3966737516733314504.stgit@pasha-ThinkPad-X280> User-Agent: StGit/0.23 MIME-Version: 1.0 Received-SPF: pass client-ip=83.149.199.84; envelope-from=pavel.dovgalyuk@ispras.ru; helo=mail.ispras.ru X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The following series includes the following record/replay-related changes: - simplified async event processing - updated record/replay documentation, which was also converted to rst - avocado tests for record/replay of Linux for x86_64 and Aarch64 - some bugfixes v2 changes: - rebased to master - fixed some issues found by Richard Henderson --- Pavel Dovgalyuk (9): replay: fix event queue flush for qemu shutdown replay: notify vCPU when BH is scheduled replay: rewrite async event handling replay: simplify async event processing docs: convert docs/devel/replay page to rst docs: move replay docs to docs/system/replay.rst tests/avocado: update replay_linux test tests/avocado: add replay Linux tests for virtio machine tests/avocado: add replay Linux test for Aarch64 machines accel/tcg/tcg-accel-ops-icount.c | 5 +- docs/devel/index-tcg.rst | 1 + docs/devel/replay.rst | 306 +++++++++++++++++++++++ docs/devel/replay.txt | 46 ---- docs/replay.txt | 410 ------------------------------- docs/system/index.rst | 1 + docs/system/replay.rst | 237 ++++++++++++++++++ include/sysemu/cpu-timers.h | 1 + include/sysemu/replay.h | 9 +- replay/replay-events.c | 56 ++--- replay/replay-internal.h | 37 ++- replay/replay-snapshot.c | 2 - replay/replay.c | 75 +++--- softmmu/icount.c | 12 +- stubs/icount.c | 4 + tests/avocado/replay_linux.py | 86 ++++++- util/async.c | 8 + 17 files changed, 726 insertions(+), 570 deletions(-) create mode 100644 docs/devel/replay.rst delete mode 100644 docs/devel/replay.txt delete mode 100644 docs/replay.txt create mode 100644 docs/system/replay.rst -- Pavel Dovgalyuk