From nobody Sun Sep 28 17:04:11 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1758664571; cv=none; d=zohomail.com; s=zohoarc; b=kw2a7rkIg4lteJEIiXdZutFNS0rZjm/b5chpOjgzO3gsP+g7wxqGeXS6S7SI2g6htk4YnAs5CY0gisJFfpZIxD8lLNTr+ptXXn3/OOPOvGlQKVd3sJKjnJsncGwaUqj816iWXlmK/+e+ERN0ZUv0oleGQNA6xDR6CkpkGTM9Hp4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758664571; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bI01yo0kUGWJmBVW9EA2Eo0iWFIm1s7La1lCDq4SBkA=; b=Hhu7morWZVtiS57N9dQ6x6LouUm7ioyeI3v9phLpWPaxry/7/G1zBQfu5KdwL4KHQGkS6X39Y/AueOE4f8tEEWvIaXqjA9JI1Z7moUrQmr3Erksqgyt9IKmAjUZk3SoB8Mq2iv2F9woFkrgHWGQnlUPX42rJt9ozYqgFeOFZ3ps= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1758664571212263.1859517258713; Tue, 23 Sep 2025 14:56:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v1Ay3-0006JL-Pd; Tue, 23 Sep 2025 17:54:35 -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 1v1Ay0-0006IK-Qq for qemu-devel@nongnu.org; Tue, 23 Sep 2025 17:54:32 -0400 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1v1Axz-0003iG-6m for qemu-devel@nongnu.org; Tue, 23 Sep 2025 17:54:32 -0400 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2570bf6058aso82387525ad.0 for ; Tue, 23 Sep 2025 14:54:30 -0700 (PDT) Received: from stoup.. ([71.212.157.132]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-269802e14f1sm168294035ad.71.2025.09.23.14.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 14:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1758664470; x=1759269270; 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=bI01yo0kUGWJmBVW9EA2Eo0iWFIm1s7La1lCDq4SBkA=; b=qdOAGKq7VMRi2rtVVHF6ehiP0tuEl6ke3+5CsTA7/c9ls/rKj+ySkKYMyazZmIgYj0 DId5UsrtCezR/W+cLLh7dqqM9geW6pJGoEpQho/IlX2VUCBilrP+wWNRj0yn4hMCPRhG BHfZhuGAT0r/YeyBI1gDJFQkoZ8gTXjZkWSF9t7gkrNX2MykDCUfBlVPuWSdrmqEJOZF d0hKB4xuAkp5faegKjuPam6xfhF4D9GqsvTnu+rxsoZq/Copgy35bi6exnNtOK9xsp7P V1xW8T8qEsmyG3XzMNjEHxc14UJ6UnT65hDMlaAYMk9c3R0cA/wfGe/lgs8gKGHlhDuX zkHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758664470; x=1759269270; 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=bI01yo0kUGWJmBVW9EA2Eo0iWFIm1s7La1lCDq4SBkA=; b=rS3AQEkV4I7SuLPsgwm6myKdmh2twnJa5+ycqDK5/YUtDlKzr/fDXOuskHHoJDMPMC d2fgGFn4HWzRLKQN4CzACtDH1hno9heu5+2SAylo2Qq9ckFmBGUjX+F+jI/9xgx5Y5vX igS7k9qt2CJxqAWZU45HBQ3/4MpH0O6olIBQEUeE0yvhnBerOVp4OplRNYnMEMbBLiTH LY1jTUPKEgkpiCY7PATbjL3i7RhguoMr8Nz/zNXJ9PUD1O1ShPj5UW+LjU+H9enJSm/g 6z/nU5hsiv8xpodRYjQCfC+NH3DWr4GKDrlJEsNVY0/lpa8vCGg2R4h3Prf3mLpEXIMZ TemQ== X-Gm-Message-State: AOJu0YxHeIxke/itiK4aBddYSwY86sS3BFNlvlTYIdx+/raew2JU+26u 1860+yAO6fTh2cGzyHGkVdSRFMkYWG/vPZ4bS5x9FS7UsR/KQKuvgmxOSPEhpLPZ4AOEgSq//yc swAQB X-Gm-Gg: ASbGncubHzsyMvRGBtSsqp/frpIkd4APA64qY79sdikB8I+QJWUHCdRAWzxvY4DhtE8 +MjnO+VPZJhujrmlS+7ZtkSnSsjhU6BAn8aEl+LrbHURWnEG0FCtqhoOgQVrUejCBEYekAwUO/N hC0Ws4Tqwcp0B9Wvoc56kkz+JCmqUKwCUDfFcBqpIMYPNV0j5/Yqq9OVGA/lpoVa6oHLvVvtCsJ elQedmpMLYI7zfKXmYPrsSAj8T36LdZmPTqJG20aADWQUrA4fyniGqAiuG2S2/6DbmPfrCQlYzz +wKtFiOwem/Nc1lHzVRBzUwTyV249PtcIPnBqYv9FyXTkxNMHaDdr87Vo8/ZKMG+OxMOqw40YX6 X9HlJbLCfqimZpMixY+2WrBjhZdGm X-Google-Smtp-Source: AGHT+IHcYuBbcewqNEI3mRL74jOEb3uZRLQBgpWk7nlFGZ6+LNRdunme5Cfzda+pGBZh40NHotPVxg== X-Received: by 2002:a17:903:3c25:b0:26b:3aab:f6b8 with SMTP id d9443c01a7336-27cc98a13f3mr54679475ad.58.1758664469764; Tue, 23 Sep 2025 14:54:29 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Harsh Prateek Bora Subject: [PATCH v3 04/10] hw/ppc/spapr: Use tb_invalidate_phys_range in h_page_init Date: Tue, 23 Sep 2025 14:54:18 -0700 Message-ID: <20250923215425.3685950-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250923215425.3685950-1-richard.henderson@linaro.org> References: <20250923215425.3685950-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x631.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1758664571763116600 Content-Type: text/plain; charset="utf-8" We only need invalidate tbs from a single page, not flush all translations. Reviewed-by: Harsh Prateek Bora Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- hw/ppc/spapr_hcall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index c594d4b916..8c1e0a4817 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -8,7 +8,7 @@ #include "qemu/main-loop.h" #include "qemu/module.h" #include "qemu/error-report.h" -#include "exec/tb-flush.h" +#include "exec/translation-block.h" #include "exec/target_page.h" #include "helper_regs.h" #include "hw/ppc/ppc.h" @@ -301,7 +301,7 @@ static target_ulong h_page_init(PowerPCCPU *cpu, SpaprM= achineState *spapr, if (kvm_enabled()) { kvmppc_icbi_range(cpu, pdst, len); } else if (tcg_enabled()) { - tb_flush(CPU(cpu)); + tb_invalidate_phys_range(CPU(cpu), dst, dst + len - 1); } else { g_assert_not_reached(); } --=20 2.43.0