From nobody Tue Nov 26 18:36:18 2024 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=1705664501; cv=none; d=zohomail.com; s=zohoarc; b=bT7TrBunbUodDZ34Qk0sPqK9RLWGnqEmArIGe8AC6KZlPq8EcDFz0AGVXaq64/bvEAw9QpBlL4UbVfy69SduAlPyW6QNKj9RnTn6E3dwPhbAA3AtSzSRbuHu5xRXYwglqHfl5xkfBAHy60NNiMLMqgp0sdicCCpZbxHbVN0kySg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705664501; h=Content-Type: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=PRuBRVEWPg8k5cL0C9qDEuFeMVHGZcEBcpFoyN0cEVQ=; b=VNxqv2oAlYYxLI1Lc5A1eUo3KJd8OgaeTYdAJFXX4A415OUCysIaYzsfCAbzX3XJ+UcV40+BVrVxYszEDxMocLI4fvVmOZRQrMFvWTlInAEYnQBjpVepkWScyZDFjojI2/lKwFa1u7NxV4POTlzsGeLlPlas91X7+96Ukebyq5U= 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 170566450098932.904416131856465; Fri, 19 Jan 2024 03:41:40 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQnA7-00022B-GA; Fri, 19 Jan 2024 06:35:51 -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 1rQnA5-0001zo-7t for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:35:49 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQnA2-0000J4-J5 for qemu-devel@nongnu.org; Fri, 19 Jan 2024 06:35:48 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e800461baso7220485e9.3 for ; Fri, 19 Jan 2024 03:35:46 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id r19-20020a05600c459300b0040e42391a12sm28532667wmo.13.2024.01.19.03.35.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 03:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705664145; x=1706268945; 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=PRuBRVEWPg8k5cL0C9qDEuFeMVHGZcEBcpFoyN0cEVQ=; b=EMVAxAMrrzUnjsnO7ApWlfOIu7VNaPwPDdRXqzgzqvcoRUYR2UMjH/dU9JDn5o3tB2 g4sPh+YrgMNowicgedvP/qPWXRDTJeB0mQurnCO2bBAUROZwOh18nksK2ZfsfD1cT6j5 pB42Hh4d1+usxIxhOaTkSnzG1mBnu9xD/LEUO+65bmGlUXtfgwgrkot5T/bzfkEctact 7z5N8TIYa8AOpxVWyWRgXhnc5G4JjeNNUna2QJUho23GrzfWr3dW5pOb0/UI9gFqa3rN op4PS+HMsB0neOKJgtyPbp0njObQjitiAJixKF4AgFpGh4eyPS+ZRE4ApmY8+yJ0ezRC RFoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705664145; x=1706268945; 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=PRuBRVEWPg8k5cL0C9qDEuFeMVHGZcEBcpFoyN0cEVQ=; b=g3E+KPHib0zbGDUMHRUYapmt6wCbglh3zfW6G+X4hjGlenIF1BJDnvxInqStxhkG30 qoK7+PqONT2yLm4uKWwjJWvGTgugX2y9ly3VkXW2FZj4gHr4RgAB6TE9QKqy26YlDrt+ kN68W0oun/6COtwgOh7OrZGFoV+EWEclErterx62oTMY1Hgtqx4qDJGgOsM4geocR0Mx IzYRmaoASgpaYI1NOOLaWKdiyKD8HNWjhmPgHUm3yoU6wUJicTQYZvPcgLEVlnMZDMHb HgsZ1OlkbPhPx5PVibbfTmVUe4vzMYTmGKagouFj2tnElIQJci2ZnPjHr8xAhwZdol0G OuGw== X-Gm-Message-State: AOJu0Yz4GvMzua+g6DRaCuF1StKe02KUu773CcuIgFwqdDpHBrnGHH+3 9wYlkTgILwUEheZD3KCAu+18zio0HyCKGW9hGO9fV0vUh6yL7A5m8QMn1bi+q1oRu+gEssRtuA+ vOtjazg== X-Google-Smtp-Source: AGHT+IF798xCajTRjCTkS072PtElk6PHFEgZ7W5QaajSvhfp1HsTQ3Ae0P1hWFiKJ3OnCfiVTr8f7A== X-Received: by 2002:a7b:c4d4:0:b0:40e:7611:e52f with SMTP id g20-20020a7bc4d4000000b0040e7611e52fmr568136wmk.315.1705664144965; Fri, 19 Jan 2024 03:35:44 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, qemu-block@nongnu.org, qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson , Paolo Bonzini Subject: [PULL 08/36] accel/tcg: Remove tb_invalidate_phys_page() from system emulation Date: Fri, 19 Jan 2024 12:34:37 +0100 Message-ID: <20240119113507.31951-9-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240119113507.31951-1-philmd@linaro.org> References: <20240119113507.31951-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.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=unavailable 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: 1705664502191100003 Since previous commit, tb_invalidate_phys_page() is not used anymore in system emulation. Make it static for user emulation and remove its public declaration in "exec/translate-all.h". Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20231130205600.35727-1-philmd@linaro.org> Reviewed-by: Richard Henderson --- include/exec/translate-all.h | 1 - accel/tcg/tb-maint.c | 24 +----------------------- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/include/exec/translate-all.h b/include/exec/translate-all.h index 88602ae8d8..85c9460c7c 100644 --- a/include/exec/translate-all.h +++ b/include/exec/translate-all.h @@ -23,7 +23,6 @@ =20 =20 /* translate-all.c */ -void tb_invalidate_phys_page(tb_page_addr_t addr); void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr); =20 #ifdef CONFIG_USER_ONLY diff --git a/accel/tcg/tb-maint.c b/accel/tcg/tb-maint.c index 3d2a896220..da39a43bd8 100644 --- a/accel/tcg/tb-maint.c +++ b/accel/tcg/tb-maint.c @@ -1021,7 +1021,7 @@ void tb_invalidate_phys_range(tb_page_addr_t start, t= b_page_addr_t last) * Called with mmap_lock held for user-mode emulation * NOTE: this function must not be called while a TB is running. */ -void tb_invalidate_phys_page(tb_page_addr_t addr) +static void tb_invalidate_phys_page(tb_page_addr_t addr) { tb_page_addr_t start, last; =20 @@ -1160,28 +1160,6 @@ tb_invalidate_phys_page_range__locked(struct page_co= llection *pages, #endif } =20 -/* - * Invalidate all TBs which intersect with the target physical - * address page @addr. - */ -void tb_invalidate_phys_page(tb_page_addr_t addr) -{ - struct page_collection *pages; - tb_page_addr_t start, last; - PageDesc *p; - - p =3D page_find(addr >> TARGET_PAGE_BITS); - if (p =3D=3D NULL) { - return; - } - - start =3D addr & TARGET_PAGE_MASK; - last =3D addr | ~TARGET_PAGE_MASK; - pages =3D page_collection_lock(start, last); - tb_invalidate_phys_page_range__locked(pages, p, start, last, 0); - page_collection_unlock(pages); -} - /* * Invalidate all TBs which intersect with the target physical address ran= ge * [start;last]. NOTE: start and end may refer to *different* physical pag= es. --=20 2.41.0