Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6498285rwl; Tue, 4 Apr 2023 13:51:57 -0700 (PDT) X-Google-Smtp-Source: AKy350azYTF+gA69fRlsvQd4XZdkbpGuNCT437Xi2Cq9hLBqIis0g7jnOBZG07FQDv3RcCAcukIF X-Received: by 2002:a17:902:da8f:b0:19c:da7f:a234 with SMTP id j15-20020a170902da8f00b0019cda7fa234mr4116907plx.67.1680641516742; Tue, 04 Apr 2023 13:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680641516; cv=none; d=google.com; s=arc-20160816; b=tqQ3doGbxw5zszi5HCYHrrDdwL+lfFjFgKniGixnqD7eWN1dpWxuD2Y2arlTW5Dydc JjCxEpB4AtlpbWjfNdJR0H/HzwSkolUqGGpXMTxCfZbJja1X1CsP45NjR5MotRPtdt2X C1Tb6rP0wgO11cT5KU/NTXQUlv67rusTEzoCw6Ntc7jBXUneyex6dW3w3Y86qSsoB6MR p6VxRdPWeo2ukPMnJzoZfppUpVsXChJ772dKOM8nFUFyiFnLwRQbyOMyCmbAIZA3bH8W ZJZGSNnhP0FYD0hM8HJIcrKjAXWpks7zckOwiFceh8kJl/2a3aRd2eoRZPdPAQkvCuu9 TZYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EWld2DJgsr3xhsXTYvy21HtOymPU5OqulnM80zqfg8Y=; b=g70NpQY8RKKdWUMVLlbPTCyXY6xD2GiCuJ2uikWWdQb9+MEYGe6MMtDO8qzIAzSLD8 lNWMcrIB11OJg+8LWkl8jMYyYBg0hCyObGuLGoyDmld6rHTnlarhkUHPzPJ16Bd5fRQ2 mbRafV8siOlegK8qBx9QM/7hKFP+XrPdsULTeGhas6FH7TE9V79OjrRW+0KbEWeeduzq rOtuGtrmqOLfltvzXW7tk6sUQNtuhJT5A1vRcDotsj4mbys4uBj4twReww7ARKbctdBp BKYKzrJIwYPj0HRGTkDpA55Q1dSUKiOjUUqWf+CNG8SJQWJMsgUAoj3BUTkpcWEQiBXf 9wqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=EkBKjiDV; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a17090a8a0a00b0023b35a46595si3582pjn.99.2023.04.04.13.51.44; Tue, 04 Apr 2023 13:51:56 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=EkBKjiDV; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236245AbjDDUvR (ORCPT + 99 others); Tue, 4 Apr 2023 16:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236304AbjDDUvO (ORCPT ); Tue, 4 Apr 2023 16:51:14 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 842C944A1 for ; Tue, 4 Apr 2023 13:51:02 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id bj20so25211328oib.3 for ; Tue, 04 Apr 2023 13:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680641462; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EWld2DJgsr3xhsXTYvy21HtOymPU5OqulnM80zqfg8Y=; b=EkBKjiDVLODWFdpJFcFh8O0aykY31wBxbHEzGsglQCXpXUxbloMC4ZIlwS3k/vDXkV CH0QRAtpbyXcWKFxGvSg9BhILVEuQbdVhGuqhLYOJDcJw1tnYEknElbq2x5vMEZ3tk4J AOlfZTAfUt8Oryal5xVNf9jrI9Z+CLyn50e6CHQiWRvYQs9nb4EnNDx7VKM+BZTvCAai IlDXOHX/AyhWCwoCyubxmWfmotQbGZgCnwwsZuwWz2ByEKqx2ghK7IlZtcoEGdGh8LEM LA1/OtBQmGSO7eyh7IuiWfqmWR+BCsWUrne4QK/eucDpWmmWL4HHW8qKTD2q82S0k5cu uqzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680641462; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EWld2DJgsr3xhsXTYvy21HtOymPU5OqulnM80zqfg8Y=; b=VEwMZKrAvYsCOsmKBcDiU0Ut5skaPnbj4IBUGOeaOfv9Ab7n65+ln6o9s4hKSnubwP H+80eB3thyu24Yh6q1hhpEWdtYaP0/Mn2D+7736bN4BOjEcJg1DVXNtnLxu1nRKvX96V GgQnU5XGS3G3JS4TQAgFw7P7MTYgQnGpHUkatT4PZ/LCfUSh6XPl+T4JKXxzWO9aQfyx gBbXYsBMy7QVhGXt1fS+s/NZs9gGQG2jtupvYrSNFGlHVDzRkqI4AZXi5AfeICoHMC/5 Q24pzht9xB7oCtO0ZZR44czpRxLN/FxCBa3iVRm+A3/xyyyWnWcPNpRw8T2p2BKmStQF wkKg== X-Gm-Message-State: AAQBX9eyT8Zn25BBcrpl9IAd8rSvsTx+ysvD8fL8Ra6hPGeKbIDev+9G NFynJN3AI/Z1ROGshCa7uWd+dQODDqSwqAhdiROivg== X-Received: by 2002:aca:171a:0:b0:389:50f2:4aa6 with SMTP id j26-20020aca171a000000b0038950f24aa6mr1422388oii.9.1680641461577; Tue, 04 Apr 2023 13:51:01 -0700 (PDT) MIME-Version: 1.0 References: <20230206172340.2639971-1-rananta@google.com> <20230206172340.2639971-4-rananta@google.com> In-Reply-To: From: Raghavendra Rao Ananta Date: Tue, 4 Apr 2023 13:50:49 -0700 Message-ID: Subject: Re: [PATCH v2 3/7] KVM: arm64: Implement __kvm_tlb_flush_range_vmid_ipa() To: Oliver Upton Cc: Oliver Upton , Marc Zyngier , Ricardo Koller , Reiji Watanabe , James Morse , Alexandru Elisei , Suzuki K Poulose , Will Deacon , Paolo Bonzini , Catalin Marinas , Jing Zhang , Colton Lewis , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-15.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=unavailable 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 Tue, Apr 4, 2023 at 11:46=E2=80=AFAM Oliver Upton wrote: > > On Mon, Apr 03, 2023 at 02:08:29PM -0700, Raghavendra Rao Ananta wrote: > > On Wed, Mar 29, 2023 at 5:59=E2=80=AFPM Oliver Upton wrote: > > > > > > On Mon, Feb 06, 2023 at 05:23:36PM +0000, Raghavendra Rao Ananta wrot= e: > > > > Define __kvm_tlb_flush_range_vmid_ipa() (for VHE and nVHE) > > > > > > bikeshed: Personally, I find that range implies it takes an address a= s an > > > argument already. Maybe just call it __kvm_tlb_flush_vmid_range() > > > > > Hmm, since TLBI instructions takes-in a variety of ranges, VA or IPA, > > I just thought of extending the '_ipa' to make things clear. Moreover > > it aligns with the existing __kvm_tlb_flush_vmid_ipa(). WDYT? > > Like I said, just a bikeshed and it seemed trivial to eliminate a token > in the function name. FWIW, you're dealing in terms of the IPA space by > definition, as a VMID identifies an IPA address space. Range-based > invalidations by VA would instead take an ASID as the address space > identifier. > Okay, let's rename it to __kvm_tlb_flush_vmid_range(). Thanks, Raghavendra > -- > Thanks, > Oliver