Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1132127rwo; Wed, 2 Aug 2023 09:08:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGgnJmnDeMF7p8jgCvSczrcmbr/1+aOgNMnJ3KPK4ILJA0WLpbr0Rq6pt6lyIXdanWN31ri X-Received: by 2002:a17:907:d86:b0:98d:f2c9:a1eb with SMTP id go6-20020a1709070d8600b0098df2c9a1ebmr7966233ejc.24.1690992525592; Wed, 02 Aug 2023 09:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690992525; cv=none; d=google.com; s=arc-20160816; b=nfI1N2vmkZEwHslYZsEQabLeJKmlfO2qknIUKfsBcM5hqL+xiCARASFWJOncot22n5 BcCCynVv+i1GX+xknl7YKLrO2A13vkrgQ7jtyOMX1uYb29oBx27OeNJkRnO5oyPMiG8r x4zG0lJiT5gf1QY4pDCA0q4Ai3Lmet1nyzVUCWalUDwjsLOfgc7zLPmd+SaQrshc89o7 wbDsoV52wCZDapEJwZ3+B1UQr+MIX0+7RYdj1ynNVQmYl1S9xg2dGe5y3DwzHjMQmIy0 tpXpPkMC6DFoa5AbTlQnS0DT5+tr/sfS5qdYTu3bKiIHxPRPfJuU3j19LkEvPclwzwox i4aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature; bh=ZNomW4wwT72r3HXV7oXm0mghHXEjar5y/FO41xNkWYA=; fh=tJJ0uaPoLwpnF48lLCHxHjTIVxspa+1AtbG/BJqsBfA=; b=Fs/fOZrnMx/lLkGGom+voNqL8BrrCMK9P/Syw2W1vN1GRwwJgbhmxaDqu5oyy/LRIx r0qBE/+lqWxgCMbs8LtaMImSI2eGDt+FjwJYI+aCZmD1UD1tm4nZfUuuZM/YYjjG4yRz eI2FNYDheNdLpIi7z1PzmPicZoT4eN8rmbpUIPI2kp1R3Zznvc+RHfhlWqV7db2fDm2E //iOnDpwLDVHUiFHIJH4nKr7bQr2bRqUNloZ/J9Wfd4tkp/f87yS4v12xAaxx9/u8tKP Ba+0t9pDJsd66DaHkM6VXXCtR+Dl3ApYPZkRAIUQGQbIe80L3i/rQgTNkc1RkPWiFq58 mCCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WeiXGksN; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020a170906279100b0098dd7b3684csi8076372ejc.994.2023.08.02.09.08.20; Wed, 02 Aug 2023 09:08:45 -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=@kernel.org header.s=k20201202 header.b=WeiXGksN; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235469AbjHBPzr (ORCPT + 99 others); Wed, 2 Aug 2023 11:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235418AbjHBPza (ORCPT ); Wed, 2 Aug 2023 11:55:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4296D199F; Wed, 2 Aug 2023 08:55:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CE1B961857; Wed, 2 Aug 2023 15:55:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 371B5C433C8; Wed, 2 Aug 2023 15:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690991713; bh=vmS3y3vEprt4Ee9EVdT/KBotedRLV0L1wK1C8giiJQ0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WeiXGksNCeqBY0D4Z/8Ow3J9XqjC9OJyQu+88uQz8TQaiKoIgPzO9Yl9TRNFTlF3D N39NOOXy/Mz33yVrblUjCuLOvbkllNtHrbplC8Lqq3XEZb+5b6hwCMns6zjmiGDiR5 WyKju8MvL8RFMV0pD03r+FySvZn1XdniQk0Eq3w2KYJ+neD3VaPmcPNIxN2Y2gg+sv DUsm6xoKz5G2XuJa48wmKk8Acu4wfo23otwQde0jhhtejTCMbDPpc0JiEX4uvF0xoL oztN3yS/UAXRXhwX7BD0euPVgBUKmEnA+m7EZc5otPguhtVvE1+tJsa8wHuWBmvo03 IzWfXQNHWVpaQ== Received: from [104.132.1.99] (helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qREBq-001PtL-B3; Wed, 02 Aug 2023 16:55:10 +0100 Date: Wed, 02 Aug 2023 16:55:05 +0100 Message-ID: <877cqdqw12.wl-maz@kernel.org> From: Marc Zyngier To: Sean Christopherson Cc: Raghavendra Rao Ananta , 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 Subject: Re: [PATCH v7 02/12] KVM: arm64: Use kvm_arch_flush_remote_tlbs() In-Reply-To: References: <20230722022251.3446223-1-rananta@google.com> <20230722022251.3446223-3-rananta@google.com> <87tttpr6qy.wl-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 104.132.1.99 X-SA-Exim-Rcpt-To: seanjc@google.com, rananta@google.com, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, pbonzini@redhat.com, chenhuacai@kernel.org, yuzenghui@huawei.com, anup@brainfault.org, atishp@atishpatra.org, jingzhangos@google.com, reijiw@google.com, coltonlewis@google.com, dmatlack@google.com, 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 X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 implement > > > 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 TLBs. > > > > 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 on 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.