Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4705767rwb; Mon, 31 Jul 2023 10:50:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlH2MdowA9L2YEBLVejLgLcW9VKkIqI2ujcwfyh7FnqiM2ZmXUKSGQpeIwFqppwCC1keLigh X-Received: by 2002:a19:7b1e:0:b0:4fb:94c6:fd63 with SMTP id w30-20020a197b1e000000b004fb94c6fd63mr370427lfc.17.1690825837046; Mon, 31 Jul 2023 10:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690825837; cv=none; d=google.com; s=arc-20160816; b=ucVfnwhAqJv4CMDvgaX0QwLvxYsflyjprDhvu5onZibgfYp3fzVBeBkiJIlxnQW3a0 lAcMo4PuWqBXM9MOsh6afrR5WyQHPIYS2Dr1mJFdwmsBdUHEMNoZNq0FqLhUfDAhI19T M9E4zX6L0lGHgyQIYhUxf6Hr+CEaVKjWtQhlqIECz+mOz9sGtYEwFwVmQlBt+q6Mqqmp orUvRN6zHg8VAQrpQqpFH0x65FLvh2LX2Z4K/2Gg4H0Vs/v7JI4fBiVBr98QL+jJuXxU BfEfHOC2MbVXAOaZIwEgqKWojx5jMBB4ewqPcID0HmRRTvN44ZMrwB+3A/hGeO1WqX1G LVZw== 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=x1yc8T49I2SK2WZwiTxo7poffYgxmNdrGJbub/r4Zew=; fh=rAlYQFSQHD7hlON3fjtW0Q1s2UXc+/dCf+bNbbVTL7U=; b=WpL71ZV4OOfRAvuSDMqFgythCti8c0FBDoBpMabOHy5GtwSPpDAExUgBeuwkSEFO69 SrZGNr7HRn+v6UJ2gDEEQt9yZU6hLbGDnYvJAYHJYeNXfXfkVMudISXpz/frFrGwDdUw AJMQ4i230IY/Be8Ii2WE64bkwpire5ZTx3cyopmTfenzss39FEVELhekoBd3VN7RtHTq fZ2LONoYzOTPqPH+Caw/MQHD6yYaSzWo4YXtB3076Usub61T5DRChL2Lo/x9X12HjpLe VUcNt1fDlchgJNmIk7e8d+sbUj1SFSHcSedu1oi2jjtgcm9jEzWOAt6nrVvK0QaAn/OB TnEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=3sVZ6Pvu; 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 ci18-20020a170906c35200b0099bccc6164asi3551923ejb.503.2023.07.31.10.50.11; Mon, 31 Jul 2023 10:50:37 -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=3sVZ6Pvu; 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 S233866AbjGaRVo (ORCPT + 99 others); Mon, 31 Jul 2023 13:21:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233025AbjGaRV1 (ORCPT ); Mon, 31 Jul 2023 13:21:27 -0400 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5EE01BD9 for ; Mon, 31 Jul 2023 10:21:20 -0700 (PDT) Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-348c7075afcso4695ab.1 for ; Mon, 31 Jul 2023 10:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690824079; x=1691428879; 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=x1yc8T49I2SK2WZwiTxo7poffYgxmNdrGJbub/r4Zew=; b=3sVZ6Pvu0MXolTiQ3qzM8kGAaMnBBEr6wdfZ02tKrrgnWJIvo3F3TkblR8+mCeqLz7 1qXflSuEUvBPQ5UPzgIjQfEu4vFikLzhtIHvIPBXHMzl0AM/kqpA5ISl2NMmQYhDROP+ 9e8klrqjKR1eutqvlrh4m6oRlLgNeD45MZr0hKazL8rfmsz5VFIrEaoD9EbMPVM48OeE qCplx75r36D9baB9hAs1IgOBsL9TNbtYYnYvs0rvOqAoqW6tw1XlEV1PEwetGi2gpp4a kbIlhN/ej8BKcLn9QF4bsJVwJkRXrgYR7F2khR014azoZLG2kmXOWrtv2RUvhNa4ZpL3 3Pgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690824079; x=1691428879; 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=x1yc8T49I2SK2WZwiTxo7poffYgxmNdrGJbub/r4Zew=; b=S8395c6L5bFtQJY6ySwahYMT7AaAWutgxxaHVOQHVCXpHoWm7tkydat9E3m/T915Oi GioCEpOUnzqhftjuJsNS4R+5h6URI5LtlRErCmqRannhKIg+vNj+2VX3ZvxLi6flDF5S YgoP4vlM7VaVVqG/SzJYSqu8mlsWJSMBGf5E2/xkLbcesJb1aaZvE02v2YYR+zjJY4Ac FtJ9vNMHgWUONFADKzg5dbt//rHgLUsbbAD51Qm3bYhOfoBwFAjwsaaHFj7imhHQshoB WT8B5Rnvbnyx0xDZoCI8yPH5bIPrkXqMfJiB8yRkLgEAWBItjTBnRkTfUpgfpcAX+7eq BU9g== X-Gm-Message-State: ABy/qLadP7hGUZk0IbaTmnaAU/EXgyBcfWgxVF9j7ZWf9YIHLrdbvwYN MzPlkTFSmS8h4CnsG4u0JIFwywEyqteICW06giG9Sw== X-Received: by 2002:a05:6e02:144d:b0:346:48bd:da43 with SMTP id p13-20020a056e02144d00b0034648bdda43mr600950ilo.4.1690824079368; Mon, 31 Jul 2023 10:21:19 -0700 (PDT) MIME-Version: 1.0 References: <20230722022251.3446223-1-rananta@google.com> <20230722022251.3446223-2-rananta@google.com> <87v8e5r6s6.wl-maz@kernel.org> In-Reply-To: <87v8e5r6s6.wl-maz@kernel.org> From: Raghavendra Rao Ananta Date: Mon, 31 Jul 2023 10:21:08 -0700 Message-ID: Subject: Re: [PATCH v7 01/12] KVM: Rename kvm_arch_flush_remote_tlb() to kvm_arch_flush_remote_tlbs() To: Marc Zyngier 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_Mathieu=2DDaud=C3=A9?= , Shaoqin Huang 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=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 Thu, Jul 27, 2023 at 3:24=E2=80=AFAM Marc Zyngier wrote= : > > On Sat, 22 Jul 2023 03:22:40 +0100, > Raghavendra Rao Ananta wrote: > > > > From: David Matlack > > > > 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. > > > > Making the name plural matches kvm_flush_remote_tlbs() and makes it mor= e > > clear that this function can affect more than one remote TLB. > > > > No functional change intended. > > > > 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(-) > > > > diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/k= vm_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_vcp= u *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) {} > > > > -#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. > We can make it global, but I'm not sure what was the intention of the original author. My guess is that he was following the same style that we have for some of the other kvm_arch_*() functions (kvm_arch_free_vm() for example)? - Raghavendra > M. > > -- > Without deviation from the norm, progress is not possible.