Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1566550rwo; Wed, 2 Aug 2023 16:57:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGVVxJ0z9Wn51Y1fkISfPs9RyKYFnIAx+V7z98O1Wzj9Ijhhealel/ZsWyuF0m1YAZGKFC X-Received: by 2002:a2e:2c0e:0:b0:2b6:fa71:5bae with SMTP id s14-20020a2e2c0e000000b002b6fa715baemr6549281ljs.12.1691020676003; Wed, 02 Aug 2023 16:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691020675; cv=none; d=google.com; s=arc-20160816; b=y/8PNLxS76Srng5v3HykqcSx7/2mSBfZlyAn4iXYVekvjwnUg03it3jncwFJnIzVaQ 2twSLIGwvNsA/GHHupXnM/pV3tEE4KGfv9gwUVJtUSdm/aVIbvA9aoAvwQpnZITC97Ti jxcGyhAJXCUAB6BSIPZatlxPyiwVCkhOvonbXZyLTKa2X5r6gYMm5yKt9I6i1pMaeyfD ACJVyv9AY10z/m9J6Dk7DmkFv80/vsYKb23Cb2dfnczVYhwbYfla/NSgj/nFvSgxUJEO /DNLHinZ1Q7Skr28nAwRpTCH6AsokzTrxG07vuUD9nupBgiIGKAKFMQ3m+kIujsg0DmZ 2Rrw== 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=V4Cpxp6Pku565KQX/OGtqaeqvGA0IKhVwq6ynNOZ9r0=; fh=BDJJtXEa2aa9J5FOJKfIOwlVszT1b6YenyWZpxr0ylA=; b=yPxJjDSzFPdyVguMTF/XQELfsKOZg1j6aJoirZ3XU7wIMGJlNMYp2Fe8tmxANv8/sS lGKN0rI4MigRy3rXl6gzidcK135UIcyVysisXONHpYSvGRTjPKtzTl8jSdtrD6XAYjcu Z3RR6nIDyuMXyAitDbNmw6QFi1udHSosFmGlx2m6tmVcT3x3HUZcWbI+kXVcyJX7/hLT aOeQcnKibXvvHCDeAUKcpEiRrfiNdWRM5IB6Ylw4+sIHDNDnAW+KyoJTtbdSusl8YjI8 LVEikyphrvXjGwvQepIS+lEDKp5Q3kNDZaSHEK7P21e9iAU226O6YqyrMpg/9Jph1ZgH 5SHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=fFTplzOA; 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 z13-20020a170906240d00b0098948181213si11392873eja.399.2023.08.02.16.57.31; Wed, 02 Aug 2023 16:57:55 -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=20221208 header.b=fFTplzOA; 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 S231941AbjHBX3I (ORCPT + 99 others); Wed, 2 Aug 2023 19:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbjHBX3G (ORCPT ); Wed, 2 Aug 2023 19:29:06 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02E032690 for ; Wed, 2 Aug 2023 16:29:05 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1bc0075ab7aso35915ad.1 for ; Wed, 02 Aug 2023 16:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691018944; x=1691623744; 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=V4Cpxp6Pku565KQX/OGtqaeqvGA0IKhVwq6ynNOZ9r0=; b=fFTplzOAgW5+YW0+6iv4fkiN86H6j11X1pwoSxH+UbZ6p7iYCmpU0kuNqQBfel9T5G TeHCwy18VTn4JwR0FocGU0dkHDSQ01w0aCShr72E11WRUJ0CH751ArFGzoZUkTYgcDou gpT/KoBW3YaVs/k6v5HBuDGdwQ8fJdnUpJjdrS7LEtN9Uwz7yeQN9HB4kn1GVc0KUKqc DmlFiExHRsSljlkGVAJKSI7bbzKb2/ECq55k51gfA8LRkuFLjGvgB4kOf7KBZm79RD0a 40vexDUVr9QAtQr7cD7Kllq93RNs7LMjDkavplv45/IYcQbfxyQND1D7JcDZaz5TIdZ5 l/ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691018944; x=1691623744; 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=V4Cpxp6Pku565KQX/OGtqaeqvGA0IKhVwq6ynNOZ9r0=; b=gXRtt59xonw79Vqyf9uhb6XjFFYJaNBTkDc8Iw8UjabKQyfxrSxrNn+/0623B40Hxl 40eonJzO627+/nPHoguoEtwGA7Pla2zb83cpLfjv4loaPieJ6t7tboeCA+6H2fnbKm45 zkbwfiFo4FkNnHCM3+Y+RWW1DALJpJPRJr8wsK9onVDWJ4TQXi07YHBCuc7r5XU3M2y1 kdpSr+8FQf+tNnAvVFzDruXxegK92ehMMtlx5qmNM63np25q/54RZG4kbcT7ZMuuMT9y VsfJlwM518gF96jRQEipsL4UKWen0TSoV9ess6Mf/JbmE1Q7Nqwrss06MtZVfgXQOlNH oFuw== X-Gm-Message-State: ABy/qLanaqBdsfeLSr8BK/clwHejHiVdpFsZxSd1I84gmS5GUiLgloTa HM17aFIESB6/lGLEft2F6KqdNGVSNKLa8hQJXLhz+A== X-Received: by 2002:a17:902:c40f:b0:1b0:53dc:1f78 with SMTP id k15-20020a170902c40f00b001b053dc1f78mr966525plk.28.1691018944272; Wed, 02 Aug 2023 16:29:04 -0700 (PDT) MIME-Version: 1.0 References: <20230722022251.3446223-1-rananta@google.com> <20230722022251.3446223-3-rananta@google.com> <87tttpr6qy.wl-maz@kernel.org> <877cqdqw12.wl-maz@kernel.org> In-Reply-To: <877cqdqw12.wl-maz@kernel.org> From: Raghavendra Rao Ananta Date: Wed, 2 Aug 2023 16:28:52 -0700 Message-ID: Subject: Re: [PATCH v7 02/12] KVM: arm64: Use kvm_arch_flush_remote_tlbs() To: Marc Zyngier Cc: Sean Christopherson , Oliver Upton , James Morse , Suzuki K Poulose , Paolo Bonzini , Huacai Chen , Zenghui Yu , Anup Patel , Atish Patra , Jing Zhang , Reiji Watanabe , Colton Lewis , David Matlack , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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 Sure, I'll change it to kvm_arch_flush_vm_tlbs() in v8. Thanks, Raghavendra On Wed, Aug 2, 2023 at 8:55=E2=80=AFAM Marc Zyngier wrote: > > On Mon, 31 Jul 2023 22:50:07 +0100, > Sean Christopherson wrote: > > > > On Thu, Jul 27, 2023, Marc Zyngier wrote: > > > On Sat, 22 Jul 2023 03:22:41 +0100, > > > Raghavendra Rao Ananta wrote: > > > > > > > > Stop depending on CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL and opt to > > > > standardize on kvm_arch_flush_remote_tlbs() since it avoids > > > > duplicating the generic TLB stats across architectures that impleme= nt > > > > their own remote TLB flush. > > > > > > > > This adds an extra function call to the ARM64 kvm_flush_remote_tlbs= () > > > > path, but that is a small cost in comparison to flushing remote TLB= s. > > > > > > Well, there is no such thing as a "remote TLB" anyway. We either have > > > a non-shareable or inner-shareable invalidation. The notion of remote > > > would imply that we track who potentially has a TLB, which we > > > obviously don't. > > > > Maybe kvm_arch_flush_vm_tlbs()? The "remote" part is misleading even o= n x86 when > > running on Hyper-V, as the flush may be done via a single hypercall and= by kicking > > "remote" vCPUs. > > Yup, this would be much better. > > Thanks, > > M. > > -- > Without deviation from the norm, progress is not possible.