From patchwork Wed Oct 26 02:10:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 618757 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp111439pvb; Tue, 25 Oct 2022 19:15:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7jZRAz8cEbdfjVRfSudvfqaUXx/dVK2zq2KbqsuH6tzxlRfwJ2fQx2eiKZXOqQad95Yszr X-Received: by 2002:ac8:7f43:0:b0:39c:dd97:ad5b with SMTP id g3-20020ac87f43000000b0039cdd97ad5bmr35043533qtk.415.1666750507483; Tue, 25 Oct 2022 19:15:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666750507; cv=none; d=google.com; s=arc-20160816; b=vhUH8VM81l6O9b6udMdJtOoP2x+4zd4jnsV6MqlbdRaGbMpZ4MoHD2cJcMyGAiiHYR rmTI7nzNgETYo/JTh2gjcgZ74f+tSU2f8/7/043k4EANfyOJne9hYSEsAombcDwvUK0/ cz5X772wcrlOtq5DF4M45Nle99eOtwP3kgncIdwWlZBDuMkX2gTgZVDb8VpHQTKYj8qP 7FsnILDQGSnZReUwP4sgSVvYsIBEQkDTEtNdp+FTXe7CryRhDBraTH7E/u7x3i6Y+FlH eGECTBBvWcktOYAzW37IQLCuWG1C5U+TqA5ZhFjtieSZQemltMaHBWbKGRjziz/kRNdq Zz7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aSrzPFoUs5rHEO8b0TFpGYbIjtXPckikapFmH/dF2+g=; b=lTX0m+HpeLD3yjWQJGh9/Nx3BhZFEdhPKASqz1vatcHY4LKJKEsxbn4zn9Xt4s3P73 QLDTky+4iqqlbs2yXbmOykPj8obPUjPrJ10Ti5QRB7Da8qDVy/SokFoPDXdyjhj9qqG/ PekPffStZ+ywOl9QZ1bvEqlENpE5OVkx6WtQKJQh/+3pEy1b/JH+8hBeDdAWwpF9lFOY uj21zt+A3wm+Zrdf+s546oeAeYWn3KGYmf9SsCp08WNacYGvgSPglDsfARMzLYEk2Va9 Bxfx+BVB5TxUJgFuJKtylTmETtFv32Tvgjt8n7Q1lU9ekyGoWokm6md9zf6B4kNm+s+N uNFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ypDTOC6f; 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 m22-20020a05620a291600b006ee8da2bb15si2853046qkp.566.2022.10.25.19.15.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Oct 2022 19:15:07 -0700 (PDT) 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=ypDTOC6f; 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 1onVu2-0004y3-DQ; Tue, 25 Oct 2022 22:12:22 -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 1onVu0-0004xt-Fi for qemu-devel@nongnu.org; Tue, 25 Oct 2022 22:12:20 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onVty-0001Do-VD for qemu-devel@nongnu.org; Tue, 25 Oct 2022 22:12:20 -0400 Received: by mail-pj1-x1032.google.com with SMTP id z5-20020a17090a8b8500b00210a3a2364fso2719534pjn.0 for ; Tue, 25 Oct 2022 19:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=aSrzPFoUs5rHEO8b0TFpGYbIjtXPckikapFmH/dF2+g=; b=ypDTOC6fIscUE71M609XYpQx7RH5vKC9y8kQT9JUwgwwpcrqdj9mkooocHPMoahLv+ kSy2KLkvM2tgRWe4R3mkDUgY9qzL20i3cT7m1kKVpDy+J8hq0UpFZMK8XeaVCVQnitkM gaT8q1o4cGwAszXHvq6342U9wrlVaMBc5KvnLWz/V+izRrm3WVMyeKI80A7oHvRG2jzg rqfKZ++9ryhaZWBESfJ8ugnjN7BillOuiQ+Zyf1JEKACgRXRBGV3BE++n+nXFR8bXnh/ r8PzV3rzexh0bmtGn12HubMa/USvvuHJ6UqZhmW9xDTOgODLJEZpSYYT+oaPq2DhuZm8 9+HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=aSrzPFoUs5rHEO8b0TFpGYbIjtXPckikapFmH/dF2+g=; b=yKBdeky0loln6PKRBqzYFsza1p34WC4ZljYmenQWI6J2wlN+aE8+RIy83mMSH8Fl7y XnyZQZplt99Pmk1pVEO1tbYRrjK5kPb2i52TeOtpbrmG8wxz1wy7gO6+KR5qcb1HrIwM DzpErHcDuT5SUwruKSyc/SY2KB9lZCSO0pi1iG/CGlyvtFi1+16NoW1H9yz4CeuTU5TY 2r6uLm13PR+/lF2JgCYibMqdMUdilLnXmZDKXDGlIA4tVdY1gqOaVCpPWUgSe6KX0kj/ rE3OpHLg8Yu+y4QO3f9E7DCK0jfEL1xVNk/3MVi2mnaIH9MDu7/dKVrQXkuTduS2HBDy 6H4w== X-Gm-Message-State: ACrzQf3kO8xh0GYjnm7MFr6CpahUiI+MiFQFUcoObkVneoZolmsv5vFr VTYsbkjKLf8zBfkyeFAVtGn2kylABeuf4ZI4 X-Received: by 2002:a17:90b:4c86:b0:20d:402d:6155 with SMTP id my6-20020a17090b4c8600b0020d402d6155mr1425007pjb.229.1666750337547; Tue, 25 Oct 2022 19:12:17 -0700 (PDT) Received: from stoup.hotspotlogin.services ([103.100.225.182]) by smtp.gmail.com with ESMTPSA id o29-20020a635d5d000000b0043c9da02729sm1897833pgm.6.2022.10.25.19.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 19:12:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 19/47] accel/tcg: Use tb_invalidate_phys_page in page_set_flags Date: Wed, 26 Oct 2022 12:10:48 +1000 Message-Id: <20221026021116.1988449-20-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221026021116.1988449-1-richard.henderson@linaro.org> References: <20221026021116.1988449-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org We do not require detection of overlapping TBs here, so use the more appropriate function. Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index aa8d213514..8d5233fa9e 100644 --- a/accel/tcg/translate-all.c +++ b/accel/tcg/translate-all.c @@ -1382,7 +1382,7 @@ void page_set_flags(target_ulong start, target_ulong end, int flags) if (!(p->flags & PAGE_WRITE) && (flags & PAGE_WRITE) && p->first_tb) { - tb_invalidate_phys_page_unwind(addr, 0); + tb_invalidate_phys_page(addr); } if (reset_target_data) { g_free(p->target_data);