From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 29553CCD1BC for ; Thu, 23 Oct 2025 13:07:29 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vBv29-0001ki-R3; Thu, 23 Oct 2025 09:07:13 -0400 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 1vBv28-0001jR-3O for qemu-arm@nongnu.org; Thu, 23 Oct 2025 09:07:12 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vBv22-0006Md-CT for qemu-arm@nongnu.org; Thu, 23 Oct 2025 09:07:11 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4710022571cso8324905e9.3 for ; Thu, 23 Oct 2025 06:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761224824; x=1761829624; 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=cUD9VjEjc/+uf3h+hW1mjHVxk+h9JxXhL/sKrTHkMf0=; b=GCJ/GRgpDsjh9xA1uIy9R2HzW0BAItUg2P+I8ZzOWPrJbOT+IuL1oVtiSQT/jcpt+Q bUICuH52fiAmpraKMYM/7pijKgmgDophvU09eHqQCQ9rH2HgA3fEYPG/5lSI6V+EiBQf IGMvNZj1xsXqFkDi47MlEqbEwDoihom510rl/iUrUktANqyBkM0ThHt/ovMNe/Jq7DG1 MrRRDQCIoRJek+aAxRNBPxeaBN/2AyzjCGL/IyVFU0RE82VW75YNMnFuv3tEduDT1ric QzCBI8eBmBYk3xXO1CvijZ8pUOe3WBPr8bgWcoHzcEqDKBVIYjaWQHdPTMx57n5UTSZW 5nDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761224824; x=1761829624; 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=cUD9VjEjc/+uf3h+hW1mjHVxk+h9JxXhL/sKrTHkMf0=; b=GXSF9cqgyTUddFJxlxlqgb5aD/XOLGBJkRek8EqmvPNgxG71PPN4M5H6emicDxogIn IDb9Jni4jV2B3hLCBYgfrT2BCA3+675TyFYRYXgBo1n81mAadfamvDeQW7PE0P92HIhm WCmYxSKTe7KrmC9xzD9J1wLfRkhdVoYamUVsf3SOPzpkw9d1rsFeV40u6u7zNbmo3iU9 1hCE69hzO1oFWDphQIETR6Z7kaCEII9qYmbNLU6SFhNUDfI/ln/ngfMx3M8VqKDEhFIu 20v5NbNDZz88Oum+BvXYUXCByolHKUHUU6+9UqEWoBj10C2WnFGwdtjeQQKA5hb0/BkV SfvA== X-Forwarded-Encrypted: i=1; AJvYcCULIMnIZZmwyGC9fR5k1Oq4nYdGvGjK5X/rRwFHRIf2BG2l0gOSRo/75QIkbcw+4Na3v4ovlLkC5Q==@nongnu.org X-Gm-Message-State: AOJu0YyCC/dg9o6V6y8TyzXrssoZFdYOliaFEI7R93RNWOJjnPdlit4Z C5WUQjc0pFCUb+DU6Z+qrCitmhrTgL54RAp6Moex14Zoxi6EUJkWh02cA4xsCLycaks= X-Gm-Gg: ASbGncuvmeKFBiUNVDXONcGg+p3mEM1UnqJpl1y6fipC2bSHi0wKWq90v0KnMEErJsW zKJ/GKtWaEmFAe2lDAgkVBeoVOKU6grByAHu0CNhkFvgEyWXhuLTUQtBwiCK6PfdsHovUcKL+3d c6Gebn/7KtldHC7JuLnDuLKVHd1aaDGscRNZe7FWh+jcWXTiEbjjIbvR5nB2NoAFvxWXqqLitwX EWmuukNEWOVT22hdAjZg5y8lnpFt5oBPwk/J865XK/yTltFspG+nGK1naj+4x4o8VmRcCf1OlfT PT0av91ZWu6pa7j1zRT7W5MIu0CezvD0kwd8pzCRIyVxzCYL9otpHjIb8LjCmW1nndglEyuROca oW5IrOZAnrZ+FVWChUWCCHLY1TiWJp3LUWRqTmZi1j5PrCfymJPenamFoTrSkwPYRwP4TzvyTLN NTzOXhhE725Se8vdwQWpibwXXGzwe9LCjlh20VjJKjv6mlSybTMb5O1IBwxXdZ X-Google-Smtp-Source: AGHT+IENDPQ5lhOGTVg85xuMpTGQAYdvenEYRDfQGhyjdalAp0NV2em7ZAGR2Wy79H4xgqIFNeHX7w== X-Received: by 2002:a05:600c:818f:b0:46f:b42e:ed86 with SMTP id 5b1f17b1804b1-4711791fbdemr173502435e9.39.1761224824197; Thu, 23 Oct 2025 06:07:04 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-475c4281314sm96584315e9.4.2025.10.23.06.07.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Oct 2025 06:07:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , Mohamed Mediouni , Stefan Hajnoczi , Alexander Graf , Peter Collingbourne , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cameron Esfahani , qemu-arm@nongnu.org, Mads Ynddal , Phil Dennis-Jordan , Peter Maydell , Roman Bolshakov Subject: [PATCH v2 49/58] target/arm/hvf: Flush vCPU registers once before vcpu_exec() loop Date: Thu, 23 Oct 2025 15:06:25 +0200 Message-ID: <20251023130625.9157-8-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251023114638.5667-1-philmd@linaro.org> References: <20251023114638.5667-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- target/arm/hvf/hvf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c index c83bffe46ad..36fa67caf62 100644 --- a/target/arm/hvf/hvf.c +++ b/target/arm/hvf/hvf.c @@ -2011,6 +2011,7 @@ static int hvf_handle_vmexit(CPUState *cpu, hv_vcpu_exit_t *exit) void hvf_arch_cpu_synchronize_pre_exec(CPUState *cpu) { + flush_cpu_state(cpu); } void hvf_arch_cpu_synchronize_post_exec(CPUState *cpu) @@ -2026,8 +2027,6 @@ int hvf_arch_vcpu_exec(CPUState *cpu) return EXCP_HLT; } - flush_cpu_state(cpu); - do { if (!(cpu->singlestep_enabled & SSTEP_NOIRQ) && hvf_inject_interrupts(cpu)) { -- 2.51.0