Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6385769rwl; Tue, 4 Apr 2023 11:51:16 -0700 (PDT) X-Google-Smtp-Source: AKy350YGIJyNesquu+8g4aFpZ2PKfO6Y35mA1kd42qA60usy9Kkd+CZv8nzzMX2zhXE41s5Kv8dC X-Received: by 2002:a17:90a:764f:b0:234:b03:5a70 with SMTP id s15-20020a17090a764f00b002340b035a70mr3541648pjl.35.1680634275803; Tue, 04 Apr 2023 11:51:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680634275; cv=none; d=google.com; s=arc-20160816; b=1Ic95o0/SQJjhyvRHtr5Cp+6j8Cy2d+iKemkSrVE8NV7zPLgwCD8HJ57aZYPH6LzUO K58giicW/7DJNx/ta4sXP3XHaQERMG46D74KKm6U8Zb90d3IZo7qFRwFCE/iZHXi2xFv J1fPkBSkygZQ2Gz6nCcVfPUlM/e/WMRKYM4nRS79W4nQABzr7ucEbTJG+Uhwi9A1covU 9U7IzR7HD5Sf+lw+mOphjJVPlrGpuzDqRzXsjBT1uHJWesuxXqUWVEFXq7ONLTyZNmL9 TAmq4ou5/K6HakmGoVA1nV5j5ElaWyDNk3Q8xKemUq6SBTEHXQ8xhLHeiwQgiDJzKdsu ov3Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=6CCFZGbCbuQhOOVHvrtx2gWbSjOe3K33umxalnr28II=; b=ZYF17825APFmfp3GpUXqE/OX0+s9/QbuBnB4p0qQwn1hDZ4yw1EH0C/mtMbc2tMcdb AQYJlAIw6a8vUppj19NyZdyFNveB+hrdsmaUvlci8HOcPC/4vOwlkknokiF01ninyp/H qHGUdtD4vep5xP9LMET0xKetYBRSNzjOL5CMMgfP+A97hKCf2bWgA8lw5Geb4BzJOzNy HYHKp5//NvYQYu2pPlaGvqAmcC3cyhqyodzpm4/0rmlG6ccr0LorH1EPsrJuQk0GxNp1 xqCKpNOHcMBJoRlDN5AJLRAej/+G5J9086bUsOsBN1hzQu4pzM8MrxBHrBdBkeUAh5Fk 8lYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=iF+v2Q68; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a170902b28300b0019cdd61a165si10112749plr.461.2023.04.04.11.51.04; Tue, 04 Apr 2023 11:51:15 -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=@linux.dev header.s=key1 header.b=iF+v2Q68; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235739AbjDDSqr (ORCPT + 99 others); Tue, 4 Apr 2023 14:46:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235413AbjDDSqq (ORCPT ); Tue, 4 Apr 2023 14:46:46 -0400 Received: from out-32.mta0.migadu.com (out-32.mta0.migadu.com [IPv6:2001:41d0:1004:224b::20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F53A1BCE for ; Tue, 4 Apr 2023 11:46:44 -0700 (PDT) Date: Tue, 4 Apr 2023 18:46:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1680634002; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6CCFZGbCbuQhOOVHvrtx2gWbSjOe3K33umxalnr28II=; b=iF+v2Q68XT8lGFaQ4gn2l9SacXhFLr07nAJDyI5xvBIPSL79kEpsGE78SUdsCLk2SYEpOH gNbkgNenyyOrqioed/7OY2lIcm+le6m6u0QuxKJDhvHEj9Xw6GN6Ra+PNeP5zXqchAsBTF 60qSwNES7H8nO1iMtQr+iEogRX+FYxU= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Raghavendra Rao Ananta 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 Subject: Re: [PATCH v2 3/7] KVM: arm64: Implement __kvm_tlb_flush_range_vmid_ipa() Message-ID: References: <20230206172340.2639971-1-rananta@google.com> <20230206172340.2639971-4-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Mon, Apr 03, 2023 at 02:08:29PM -0700, Raghavendra Rao Ananta wrote: > On Wed, Mar 29, 2023 at 5:59 PM Oliver Upton wrote: > > > > On Mon, Feb 06, 2023 at 05:23:36PM +0000, Raghavendra Rao Ananta wrote: > > > Define __kvm_tlb_flush_range_vmid_ipa() (for VHE and nVHE) > > > > bikeshed: Personally, I find that range implies it takes an address as 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. -- Thanks, Oliver