Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4213902rwe; Mon, 17 Apr 2023 09:24:03 -0700 (PDT) X-Google-Smtp-Source: AKy350brrIKjG27uuCVOqa3JR12DBysZWkDwSsmrLjMSt+23QlI5NgG0pa2uIwG47ug6VC7zCoal X-Received: by 2002:a05:6a00:1384:b0:634:a563:c9d7 with SMTP id t4-20020a056a00138400b00634a563c9d7mr25652223pfg.21.1681748643049; Mon, 17 Apr 2023 09:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681748643; cv=none; d=google.com; s=arc-20160816; b=EZ1LT7rduJVLbC2nfsaKyHs7LXter577rQw8eqSuRn/Pe+5WsSUoK5VojfsOtYYwZq hmlsyqCu2Xig+9E9+DEP3Ik+Ni7pRZqjlhEW04h/9BTq9kCIenA6jlr7mLQY6XPZNIDK D+e6M8eEURX933Pi7Zz0Z39eFApGfIkf61139nUGI0tYMlKi0YTd1Sfc2Xf97H5YKzTS uj5gS7Nfe45lCPb2EEkXiisV3gBt0F8uHb8CJQHyQOLWnZWzDKrBeAJ/dlqSae6WiYeX o3SW8vK1pmyB+9g4aY4EIXNsWB/s9icryYfnv3DOzsxC7cOy4Yj4G18h9iz+aZTA/oIH Cupw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=N9FT1+gF9gChJJmMjVjpNqwB7SAQLZNlXPgbWQB5cS4=; b=aBrs3fVZY+KTxUVwIsQus2+yZxE2KhYpdatPjI6UvDbzyjIuFTl48UXZFIcBRYLACQ taIUnQUeMEKFFe6pdcO2cTos8R8F19/wNjpQ1o7r26bBaS4cmvzwQM4fOJTARuvHQDy6 tqM4Cl7c6vMkhgrvmg/+RUdhGvpimSw760KAEdS7UPjIMbbGJtZpjVn8RgwEL0kT8/M4 lr2zau3QmYpwA2P3IDe1vAZbfP118NH175OOCG31ckWAJTkP/0s+s88ev+Kq301vipSL /tqOHXd+g3avNv91SOx7cNSHVm0PghLPd5KkHPJefH9nW9GqYT66iiJBm6M7S9lNUwFG +flQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u145-20020a627997000000b0063b60063f55si10507683pfc.382.2023.04.17.09.23.49; Mon, 17 Apr 2023 09:24:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbjDQQR7 (ORCPT + 99 others); Mon, 17 Apr 2023 12:17:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjDQQR5 (ORCPT ); Mon, 17 Apr 2023 12:17:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB50524A; Mon, 17 Apr 2023 09:17:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6AED96119F; Mon, 17 Apr 2023 16:17:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F1E3C433EF; Mon, 17 Apr 2023 16:17:51 +0000 (UTC) Date: Mon, 17 Apr 2023 17:17:47 +0100 From: Catalin Marinas To: Raghavendra Rao Ananta Cc: Oliver Upton , Marc Zyngier , James Morse , Suzuki K Poulose , Ricardo Koller , Paolo Bonzini , Jing Zhang , Colton Lewis , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v3 1/7] arm64: tlb: Refactor the core flush algorithm of __flush_tlb_range Message-ID: References: <20230414172922.812640-1-rananta@google.com> <20230414172922.812640-2-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414172922.812640-2-rananta@google.com> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 14, 2023 at 05:29:16PM +0000, Raghavendra Rao Ananta wrote: > Currently, the core TLB flush functionality of __flush_tlb_range() > hardcodes vae1is (and variants) for the flush operation. In the > upcoming patches, the KVM code reuses this core algorithm with > ipas2e1is for range based TLB invalidations based on the IPA. > Hence, extract the core flush functionality of __flush_tlb_range() > into its own macro that accepts an 'op' argument to pass any > TLBI operation, such that other callers (KVM) can benefit. > > No functional changes intended. > > Signed-off-by: Raghavendra Rao Ananta Reviewed-by: Catalin Marinas