From patchwork Thu Dec 7 10:26:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 751063 Delivered-To: patch@linaro.org Received: by 2002:adf:a499:0:b0:333:3a04:f257 with SMTP id g25csp344922wrb; Thu, 7 Dec 2023 02:27:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IETBJ2lZoIMSllb+HHPcXVeKR3WPEwm/CCykDbzrb2ZE4nbr0xA6jsqJexTldoaFYkBTT7S X-Received: by 2002:a67:fdd1:0:b0:464:77f2:561 with SMTP id l17-20020a67fdd1000000b0046477f20561mr2307512vsq.51.1701944877771; Thu, 07 Dec 2023 02:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701944877; cv=none; d=google.com; s=arc-20160816; b=yiyaYziZR9ASicptZplWa57eRCY+uJzQ1ZY2VZ0SXDCS1ieFI+ErX7HQA/JFyRy5F2 L53GlAdJceqzsuXc/IA4XYP+fEQcsk/39Yg3fvdy9BEU9PmNRAjyQ8rGMza0DosvpUr3 NdMyUZ1fPT/779GkNYnPNHmJchxj6ojKmgea1O/gwqOn6hXs9OWg8p8ykA/CcMd8/nQf lvtelW0wWITCgzy4KMaMhrLdOZvW2CuSJr6oI/npK8scyl3ydXYu1CQoCyB0UH6UhLim FGS2oQBpnh144jj7WBduZHrzddjHHz6fj3LU+tHafge0hqJb+7tcz2sAAdkaxtGyKq5d MM6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=2xefmX366fbhfJxsIeFGi91XZmITR9sN6ULSxx36cJM=; fh=Wwzqfz/G0LPj8Oasa7SYmxwpyyV6ogvrMIS9R1LpZE0=; b=NkLqOr172d5GV6oETKhzQPXRIB2o3GSa8TQQDj6BduGeZlNbbhFlzqkVU1R729NHVc dDeN8dwXRvby/GoChataxBPIqWPh0XWEJIBQEkE1/aNnZfQQ8GGSG01G59smgxNIThn5 7ZsiUPSjd76islzUZwgdWSvNVpgfMBEtGPLZU8VL08rGrvHk41SbB8I+sfpoJMnv6xK9 83BLDOB3AKcDUhoJGbRvCx5/jdOpBiozGUQ2RcFt3pO/PeVzLhJDcI0VVHD+GX6BZo3/ pp9JQ/f064GlF62N2izh4zYIdu88Ec2fEsUc06gUglQJ3O4MixTrW1HFJx4GFd1kEO0e wN6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f0i/Ku2l"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c2-20020a0ce142000000b0067a97588be5si983577qvl.496.2023.12.07.02.27.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2023 02:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="f0i/Ku2l"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBBap-0004fp-AK; Thu, 07 Dec 2023 05:26:55 -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 ) id 1rBBag-0004dq-7u for qemu-devel@nongnu.org; Thu, 07 Dec 2023 05:26:47 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBBaX-0001XS-CI for qemu-devel@nongnu.org; Thu, 07 Dec 2023 05:26:38 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40c236624edso8303435e9.1 for ; Thu, 07 Dec 2023 02:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701944794; x=1702549594; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2xefmX366fbhfJxsIeFGi91XZmITR9sN6ULSxx36cJM=; b=f0i/Ku2loLm3GQSqMEOgFPpaihki9649Qg77gV0rs6i4Uv7mpJhN/IeQFTlx+XoetO NzZ76shA0CYdfA64ElSj4Ob/oIM0s3Jmo8MMEfjaq6EqiapEz7c3baqAPI0xKMQyjwkO o0jb81S09defIA778jR5vRcWNsd6Qsav75+HMZgYzKfl24JyQrSUghaeKscRI0wjV9vb VAe14/LkbxJuv3ICA/iaRwmLeFqmh4Y+FHg+8f4htMrvQZq+lcVrb9YjXboZxe/R4DEL FTpSPqX1SLowoVzJ8O+SCMraG9lLokHqsg3RJdh+IScS6qruu4ZNFt6HP69UE/nl9rjO 9OWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701944794; x=1702549594; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2xefmX366fbhfJxsIeFGi91XZmITR9sN6ULSxx36cJM=; b=qfq1j40muLYXQG2nb/xEhIV4wHCsLFUDHE2SUUX9YAQdVWzZB43M844qYmty4SamQ9 XXNbZsJK+cePDwaRzo9npW3l9HYMO5Fq5gYdOAXTmhWFd0LrlVD+LPf4YZXBCKlmWkCH 8HIh0o4/3T3dJpZd8A9ixemgoSXYJHeA9G+CEfNBrXChO3kvRGWW0ofvsPn/ZLML+1Ei VAa+8QiLEYwSEWUUsZr6Y653QcrHfQUSUSu2VfTe59v6aEByeJSxjbn4Cry6F4sgOTC/ Jq6lGWyyLwAo+Iy2KNq95Z2bT6f52Qi+G6JnhjhvFERLZrvOu6L8X9aANFsLYb/9Iymr wqmg== X-Gm-Message-State: AOJu0Ywq7jxWszhi846rUAMOMVa1xkLGfw+clx28YpAebpKLKoJxO1G7 /tAyP0jqbJ4oJYyACFeEd+VzE1EsWtNTrxzaLlY= X-Received: by 2002:a05:600c:5199:b0:40c:2395:1fa7 with SMTP id fa25-20020a05600c519900b0040c23951fa7mr1093806wmb.141.1701944794513; Thu, 07 Dec 2023 02:26:34 -0800 (PST) Received: from m1x-phil.lan ([176.187.202.111]) by smtp.gmail.com with ESMTPSA id h11-20020a05600c350b00b0040b4cb14d40sm1489520wmq.19.2023.12.07.02.26.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 07 Dec 2023 02:26:34 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi , Fam Zheng , qemu-block@nongnu.org, Paolo Bonzini , Pavel Dovgalyuk , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 0/3] sysemu/replay: Restrict icount to TCG system emulation Date: Thu, 7 Dec 2023 11:26:28 +0100 Message-ID: <20231207102632.33634-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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, RCVD_IN_DNSWL_NONE=-0.0001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Slightly simplify non-TCG and user emulation code. Philippe Mathieu-Daudé (3): util/async: Only call icount_notify_exit() if icount is enabled sysemu/replay: Restrict icount to TCG emulation sysemu/replay: Restrict icount to system emulation include/sysemu/cpu-timers.h | 2 +- include/sysemu/replay.h | 11 ++++++++--- stubs/icount.c | 27 +-------------------------- system/vl.c | 6 +++++- util/async.c | 16 +++++++++------- 5 files changed, 24 insertions(+), 38 deletions(-)