Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4720508rwb; Tue, 8 Aug 2023 12:43:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9L4b7JMP1jxTyQIiIIDcTozgzQc3/28ph0a5HWNaGakWKkt2O73Z5KTMmUk2EFdp4N4m9 X-Received: by 2002:a92:c567:0:b0:348:ac7f:69a2 with SMTP id b7-20020a92c567000000b00348ac7f69a2mr1041526ilj.15.1691523792120; Tue, 08 Aug 2023 12:43:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691523792; cv=none; d=google.com; s=arc-20160816; b=rhsg/NX0A+pYiiGe4J5kCulsd8lGtXknTMM7RT6x56BWWyFfsIDeYjiwX6AFn7emUQ IbsQ6t1rnAscRdFSFAKUzi/onH/yWyC8Ts0bdbo/hRySsRlOyPLmNGFlK8Ez2KXiY0CJ 93z5/m0Lv1DE7uo0k4pVJ/3bLZcY7Y5lwjS+gz8X+hnwd1xcmYu3DiLtr+RHuBYS+aP5 MMW3m3Y7cReX0obdbkthT7y8/aVV/SeyF/agAVn/lk5zQliezFqXPbq4rbG/R2NNyBVS zBd0DakF8IgX0p35WEeaZzknaB0DFzOwimT0RlAw+LEvLbXAC91cSl2dMzDBNk4FpkUR H/9Q== 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=U4qeJyFw/gGtNGwwL76+JxYJVDiytKHvIxhzv45xt00=; fh=kX3tcrKRRrusPA594z1gJ7bmcM7tbBckr51LcuAUwUw=; b=PJuDNFx6BEcNurRo4zbI8cKEyBv9QX1e47g3CIZRYseg3OdCSf1YukISH7qEPw9fUu qzK6RvGBvpgJMJrqGoTXuT2uazsktQ8K1+JCVw/OtheqsfyHqw+C/HzBaOJDsGD4X7ML jiFQJoopO1TEYTz0vxIriVKDFcuFgTnV6G7eim5xsvlVmHkR4NAmWXenT9jgxrLl7NOS MNLNAHyQzn12f0hz0BhrzSLeIG3lIQvHKla2gSfX3A6ttLW/TG5yV9FJuRFRqRD3xsAL 631gndKqzcAqueW/1gxwjnjcafFDlA2F5PRIRX9EwW1WfCoAHkl/Jq7UkJ1d97DC6SuN fNmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=FpfAKc3X; 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 y63-20020a638a42000000b00563de199314si7610122pgd.896.2023.08.08.12.43.00; Tue, 08 Aug 2023 12:43:12 -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=FpfAKc3X; 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 S234731AbjHHRqQ (ORCPT + 99 others); Tue, 8 Aug 2023 13:46:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231982AbjHHRpb (ORCPT ); Tue, 8 Aug 2023 13:45:31 -0400 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291B025EDA for ; Tue, 8 Aug 2023 09:20:40 -0700 (PDT) Received: by mail-il1-x132.google.com with SMTP id e9e14a558f8ab-3493d0f785dso151325ab.1 for ; Tue, 08 Aug 2023 09:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691511605; x=1692116405; 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=U4qeJyFw/gGtNGwwL76+JxYJVDiytKHvIxhzv45xt00=; b=FpfAKc3XyP1qtbWBZ1r5mjM0gGcK3mBqFnQDJg0z7xglITdvPvyPFO68jQ0PYtEUYV rpNDUVZsipF7n+fTt95dGPnaD80TOiS9mDENUKcX5WGNdhDAs8DDDxN/NVyVQA8z0W5P 25Tt2lotrmP+TltcpTJg7iP1p/XE1wX+ZjijZoVt+3tKY7bWxnQCNP5LL5wrjU0b2GnI aVqQqHH8Ca7ngxoTSYzFdMaiz/kEiqSAcaMrBMBDLXzcSuPFg8+njtH5c8+y240S5y9+ 6uPltBfXOJFc9jALMNDRbM20jjU7jRwikkRkGmhO/qF4WtwZoWK1pjQTtuAfpe/Mq/Sf Sg5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691511605; x=1692116405; 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=U4qeJyFw/gGtNGwwL76+JxYJVDiytKHvIxhzv45xt00=; b=W3J6r9pY2txDVjb64/JZN70NcKlQDPfG380JlZhz5XOzXbCcavEGuDPrJJVxr71kuM 4MQ7saNtLoPMFDzd/tVoLyMLtos5fsOdiLBXItazN5UlHG0SgBH92PuESMT9t7RbxgJP 6U3/N0PhINS6U9bLgtTTOhpozwJGrnLemAYn7ODkFgdrGdZFo3h3fu7eMvQMrOzZ0pTA CWIp8ht2Tmcnyj5ZywpNxhsRuykMwSDme67QZFS1gmpcWTFQ2sB5WvfDpmc+EljCbmZx LLypKHimCZ9kWiBd5fg/nTMhlkRa/vQkTDKxfVZCeKbrL6qknPB/3nN92eP+DZEWa8aq x3Pg== X-Gm-Message-State: AOJu0YyziyLrj/su2wnlzFKl7JJuoW1R94PrMAMY+9cFpX7QV99YQ9q6 Ja6qt0ALSDZctHZ16D0qk+wCgCMid9usFI+oa5YO2Q== X-Received: by 2002:a05:6e02:156e:b0:33b:4a8c:2147 with SMTP id k14-20020a056e02156e00b0033b4a8c2147mr897399ilu.8.1691511605457; Tue, 08 Aug 2023 09:20:05 -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: From: Raghavendra Rao Ananta Date: Tue, 8 Aug 2023 09:19:53 -0700 Message-ID: Subject: Re: [PATCH v7 02/12] KVM: arm64: Use kvm_arch_flush_remote_tlbs() To: Sean Christopherson Cc: Marc Zyngier , 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, 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 On Tue, Aug 8, 2023 at 8:07=E2=80=AFAM Sean Christopherson wrote: > > On Fri, Aug 04, 2023, Raghavendra Rao Ananta wrote: > > On Wed, Aug 2, 2023 at 4:28=E2=80=AFPM Raghavendra Rao Ananta > > wrote: > > > > > > Sure, I'll change it to kvm_arch_flush_vm_tlbs() in v8. > > > > > While working on the renaming, I realized that since this function is > > called from kvm_main.c's kvm_flush_remote_tlbs(). Do we want to rename > > this and the other kvm_flush_*() functions that the series introduces > > to match their kvm_arch_flush_*() counterparts? > > Hmm, if we're going to rename one arch hook, then yes, I think it makes s= ense to > rename all the common APIs and arch hooks to match. > > However, x86 is rife with the "remote_tlbs" nomenclature, and renaming th= e common > APIs will just push the inconsistencies into x86. While I 100% agree tha= t the > current naming is flawed, I am not willing to end up with x86 being parti= ally > converted. > > I think I'm ok renaming all of x86's many hooks? But I'd definitely want= input > from more x86 folks, and the size and scope of this series would explode.= Unless > Marc objects and/or has a better idea, the least awful option is probably= to ignore > the poor "remote_tlbs" naming and tackle it in a separate series. > Sure, I think it's better to do it in a separate series as well. I'm happy to carry out the task after this one gets merged. But, let's wait for Marc and others' opinion on the matter. Thank you. Raghavendra > Sorry for not noticiing this earlier, I didn't realize just how much x86 = uses > remote_tlbs. > > > (spiraling more into this, we also have the 'remote_tlb_flush_requests'= and > > 'remote_tlb_flush' stats) > > Regardless of what we decide for the APIs, definitely leave the stats alo= ne. The > names are ABI. We could preserve the names and changes the struct fields= , but that > would be a net negative IMO.