Message ID | 20241220104220.2007786-5-npiggin@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 072F0E77188 for <qemu-devel@archiver.kernel.org>; Fri, 20 Dec 2024 10:43:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tOaTN-0002Al-HH; Fri, 20 Dec 2024 05:43:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <npiggin@gmail.com>) id 1tOaTL-00026I-OL; Fri, 20 Dec 2024 05:43:07 -0500 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <npiggin@gmail.com>) id 1tOaTJ-0005Ev-Vl; Fri, 20 Dec 2024 05:43:07 -0500 Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-801986033f9so1086230a12.1; Fri, 20 Dec 2024 02:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734691384; x=1735296184; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rmIt+w92XaivxUque0yXLMfcfuiQLuXv/FcE3kAIH5M=; b=hAgmrFIeMSC7F4k+KFlP9Z/2FFkLR94tQdrIZy6cigiUM0glu+eKSSS598DQ+apo8w MLcQUKbizR+uGQQQQkxosYTa7A07jK4U6K8uMHZeMeewdx1Nhu7cAldKDndzpDsd0DBY 2oxL33gqBtmrMdDVjpq3n1ltuqJdkv6XPU4yxH6IxnpaRkyDu/8WxGt28TDsuYNlSvaE MGF4Y6UcAs2+WqSWq6cXhLk2O3YUSF/B2JtSQLdn9e9I7vnsypschH51jyKTC13Y/gh/ tpXeZ9YGZJbMVBpy/krvCccgiyJG02j43zfFOlSWEXgeB7wQdZGn5JPO4p+qYwn6zl/O qHhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734691384; x=1735296184; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rmIt+w92XaivxUque0yXLMfcfuiQLuXv/FcE3kAIH5M=; b=DBk3LEnRPVTqcTaeUAqiH/5yb2pmKUZR5GnHFhd9rvoSw0huCNuRyDYp1XJmxLhKuH bxBr3hMOmHpnQh2CwOcdmr7aGS5H9Fx+ZaysAzOPeGFmgd30JWECz2oqbEqSB+y5x7p9 JbG2AD1C2sVekiI8nrbu8Mk8b+EWqtkKc0paFFh30tipz7+ROFG9OImsuVnqv/t7nR/L 3IfveqMI8/4ArTN1F/GpONHQNNYhH70LFgSUxE+4QXdcy0ctxg3qZu2Un361H6LDLRbb M964e34nnVfa726Cq0WGpDei64+zTYIBy7wcfj4egPOBuLQjvtrLcU2Gh+nhTAKFaewy UIiQ== X-Forwarded-Encrypted: i=1; AJvYcCV03gUaJ9/B37pn43t2DqW/7C0a32pXOBk1iIZ+cv9K8NfmkagvRvs7r+bg51zyzkxmqLxIaRXTeUHh@nongnu.org X-Gm-Message-State: AOJu0YwqjNccEp2+zHcVKDACXJ1p9jiyI5lPNDAn2u/LfhYhAFA+8Y8M mvoJ34xd381/EJcVDStat7VjL6GX1XXR9r7mW8ucUg5KGBIkghA/NWb80Q== X-Gm-Gg: ASbGncu5BGSPw9HBndn4DhyEqgTxZXxhYzxsQsNg37YBmoVI4v0PN2mxBo8XMdBWsOg iJhVqbTYr6tkIqNVCPDj3bwS9qRqGzv9yO1VvfULWMrdQpbvx+bjHU/JQH36wjZUcYR2yV9P5Ya Gs/+GYqQe1GpTvedfK6n14ZDzW430mhq5N3Jhdy6vjWdsgw3X7/BwaAslrTn3WMYsNhv/IC0zcC A6wl8/8Se+SH1FVNgqVk3/zK2hyC5EQwkqJ29Imi/XQ/fTtUnvNK2kL2Y6cGWnVi0W50ps/pJIu ksQ+5KZ75w== X-Google-Smtp-Source: AGHT+IEeO0yTP2vWGhKbv7rX2frFeEeF23qt7RPC0w32ViOPm0biwVYsXXb/Ut9rNfBedi3q3UN8tg== X-Received: by 2002:a17:90a:da8e:b0:2ee:fdf3:38dd with SMTP id 98e67ed59e1d1-2f452ec2919mr3435905a91.23.1734691383996; Fri, 20 Dec 2024 02:43:03 -0800 (PST) Received: from wheely.local0.net (14-200-18-130.tpgi.com.au. [14.200.18.130]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f2ee06dfd3sm5376942a91.32.2024.12.20.02.42.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 02:43:03 -0800 (PST) From: Nicholas Piggin <npiggin@gmail.com> To: qemu-devel@nongnu.org Cc: Nicholas Piggin <npiggin@gmail.com>, qemu-block@nongnu.org, =?utf-8?q?Al?= =?utf-8?q?ex_Benn=C3=A9e?= <alex.bennee@linaro.org>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>, Paolo Bonzini <pbonzini@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Fam Zheng <fam@euphon.net>, Ronnie Sahlberg <ronniesahlberg@gmail.com>, John Snow <jsnow@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>, Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>, "Dr. David Alan Gilbert" <dave@treblig.org>, Markus Armbruster <armbru@redhat.com>, Michael Roth <michael.roth@amd.com>, Wainer dos Santos Moschetta <wainersm@redhat.com> Subject: [PATCH 04/17] util/main-loop: Convert to new bh API Date: Fri, 20 Dec 2024 20:42:06 +1000 Message-ID: <20241220104220.2007786-5-npiggin@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241220104220.2007786-1-npiggin@gmail.com> References: <20241220104220.2007786-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=npiggin@gmail.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
replay: Fixes and avocado test updates
|
expand
|
diff --git a/util/main-loop.c b/util/main-loop.c index a0386cfeb60..6180a183f50 100644 --- a/util/main-loop.c +++ b/util/main-loop.c @@ -148,7 +148,7 @@ void qemu_notify_event(void) if (!qemu_aio_context) { return; } - qemu_bh_schedule(qemu_notify_bh); + qemu_bh_schedule_event(qemu_notify_bh, QEMU_CLOCK_REALTIME); } static GArray *gpollfds;
Convert qemu_bh_schedule() to qemu_bh_schedule_event(), which can specify the clock type, making it compatible with record-replay. The notify event does not affect target machine state, so it should use QEMU_CLOCK_REALTIME so it is not recorded and replayed. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- util/main-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)