Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2203426rwb; Thu, 27 Jul 2023 03:56:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlECkFDvVUSr696BfreF9nXjAvhQgZI5R609aWVin26AdPDz78RIP+uPrIk3i/DAUbDjPFjV X-Received: by 2002:a17:90a:eb06:b0:263:efca:8bcd with SMTP id j6-20020a17090aeb0600b00263efca8bcdmr3904737pjz.2.1690455365632; Thu, 27 Jul 2023 03:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690455365; cv=none; d=google.com; s=arc-20160816; b=eXneWzA4FCRpqzyDc1vi+6gbPteLBBT6qJ6oCkcQGRI76nZDkw1mDuH3YmDx6QCTQ9 z8wipnWb87ylQebczGKEhmOs28J4qzwizeKQh8JXIkAPqLW1a9Ytl2FBuznf49XVJDup RRYVK27A/DbqG6t66WhpIV2A1sxd8HU35IwLQNMGjAMfDo/cq0n/eW6mrB35kG9ZUWWb a/w6jV5qB52w8wCpB9vgZH16j2Awm91a60vt9K6zWbeJPwC89Lx3RXqF5DHk9gUgAS6X t+xzU7bmrgkkBXy9KjYpy/Hw5sM1pjesNYBBwxmAnXCmH8H0PId9oqa1hsESRIVrbDXW hIPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=E+nIwt0PCCnGr0dkMhAgjAlmM9RORnHtOnDKwzxQ8dM=; fh=QJvfr3QVGDnRACVQotm9A8mAULArVXx0f/UhPXDDkLs=; b=wYzIh+g1IY/45A077MPszZU376xwmeLdTuMYyX4EF4qNNlDw0pIArFU5Q3ItHuVmZy N9hMab39yW0HAz1RTvsc4kkR1GC/KlC6pjF3LCndTpyyTNk+BUfrTgR1kAZWEE3rbOXK UzBaCaQh0qhvTZCZLHR11nFQMlxtH/5P//1PdvB+OJeHO2n8NenXhwFsG/dN0N3xHIgw oYdSEQ442qoDjMPJ3RK4tuX8Qo6rXNk5rI/8scb4SzUmNRs7alj0E4ayB0K9+hWNVh/f zzrRYT21ijjef4h/lZbUe5RDaFSUU0u/MLCLifkiMIvJnRxortMIKPOI2inE3v4Ig8PE uruQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="p/QjlPu2"; 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 o14-20020a17090aac0e00b00268112869c0si2744751pjq.156.2023.07.27.03.55.53; Thu, 27 Jul 2023 03:56:05 -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="p/QjlPu2"; 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 S234165AbjG0KZX (ORCPT + 99 others); Thu, 27 Jul 2023 06:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbjG0KYz (ORCPT ); Thu, 27 Jul 2023 06:24:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 288CF1BC3; Thu, 27 Jul 2023 03:24:45 -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 B1B1861E12; Thu, 27 Jul 2023 10:24:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AF45C433C7; Thu, 27 Jul 2023 10:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690453484; bh=4dJnTdxPpOs7yn6/yYmeAXblymyOHLLkN8KCdq9mBq8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=p/QjlPu21Qli95UDAiPYEux9bfi/bCv7dlTpizjIkk0xlBrhH9IQdL59/OqNGEwMs /Phd0+mL9qShJHtdNVoxdgFeiBMgt225WmcUUZYZuTexJb0wJQP8lTuyVFWsWZZEfT QtCuDtVSLScJWgBArzU/3bBcqw++uyt0av/ISu8ZbO0VRvhC5zLU3xlzFVYq2NgyLE 7HUm9Gx5qBpoPF+DaJ6tV/mHONfGUn7uDiI0cBbgkQwqJRIH8x61oR3BrbfIg25/U1 JZb+158uamEu5ywUmKeXuHrBV3Z5gZOmtHoSEBU68Kam5pVUYv7FmWFMBdRNtwgj/l UutD2auIY9BVw== Received: from [104.132.45.102] (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 1qOyAj-00HK4x-J8; Thu, 27 Jul 2023 11:24:41 +0100 Date: Thu, 27 Jul 2023 11:24:41 +0100 Message-ID: <87v8e5r6s6.wl-maz@kernel.org> From: Marc Zyngier To: Raghavendra Rao Ananta Cc: Oliver Upton , James Morse , Suzuki K Poulose , Paolo Bonzini , Sean Christopherson , 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, Gavin Shan , "=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?=" , Shaoqin Huang Subject: Re: [PATCH v7 01/12] KVM: Rename kvm_arch_flush_remote_tlb() to kvm_arch_flush_remote_tlbs() In-Reply-To: <20230722022251.3446223-2-rananta@google.com> References: <20230722022251.3446223-1-rananta@google.com> <20230722022251.3446223-2-rananta@google.com> 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 104.132.45.102 X-SA-Exim-Rcpt-To: rananta@google.com, oliver.upton@linux.dev, james.morse@arm.com, suzuki.poulose@arm.com, pbonzini@redhat.com, seanjc@google.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, gshan@redhat.com, philmd@linaro.org, shahuang@redhat.com 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 Sat, 22 Jul 2023 03:22:40 +0100, Raghavendra Rao Ananta wrote: >=20 > From: David Matlack >=20 > Rename kvm_arch_flush_remote_tlb() and the associated macro > __KVM_HAVE_ARCH_FLUSH_REMOTE_TLB to kvm_arch_flush_remote_tlbs() and > __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS respectively. >=20 > Making the name plural matches kvm_flush_remote_tlbs() and makes it more > clear that this function can affect more than one remote TLB. >=20 > No functional change intended. >=20 > Signed-off-by: David Matlack > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Gavin Shan > Reviewed-by: Philippe Mathieu-Daud=C3=A9 > Reviewed-by: Shaoqin Huang > --- > arch/mips/include/asm/kvm_host.h | 4 ++-- > arch/mips/kvm/mips.c | 2 +- > arch/x86/include/asm/kvm_host.h | 4 ++-- > include/linux/kvm_host.h | 4 ++-- > virt/kvm/kvm_main.c | 2 +- > 5 files changed, 8 insertions(+), 8 deletions(-) >=20 > diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm= _host.h > index 04cedf9f8811..9b0ad8f3bf32 100644 > --- a/arch/mips/include/asm/kvm_host.h > +++ b/arch/mips/include/asm/kvm_host.h > @@ -896,7 +896,7 @@ static inline void kvm_arch_sched_in(struct kvm_vcpu = *vcpu, int cpu) {} > static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {} > static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {} > =20 > -#define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLB > -int kvm_arch_flush_remote_tlb(struct kvm *kvm); > +#define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS > +int kvm_arch_flush_remote_tlbs(struct kvm *kvm); How about making this prototype global? I don't see a point in having it per-architecture, specially as you are adding arm64 to that mix in the following patch. M. --=20 Without deviation from the norm, progress is not possible.