Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4674495rwb; Tue, 8 Aug 2023 11:56:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKcL52J2RA0ECqycwyY9Qx+Q7/DY5cOec1wBpmSj83Pfp9enFBV0fwVGZVHuI5p8nigbtL X-Received: by 2002:a17:902:c40a:b0:1b1:9d43:ad4c with SMTP id k10-20020a170902c40a00b001b19d43ad4cmr856581plk.40.1691520972928; Tue, 08 Aug 2023 11:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520972; cv=none; d=google.com; s=arc-20160816; b=ZHllDDvI8AXU3vXiq1SkHu1cuCCKMIFAZ5IqPfaOXaQqF8pMxFkcLPRrMHrOGEyKEz UfI/owkDRf2kooTMzR5CfOWdM8ffmgopziKKSFBkupzuPz8ZUmaN+HoAGGIRJkjcJVv6 0B0j/Wcok43wBgr0+jJeLMOmxd5PSHLzuiq73b8EVnkFQeMn0TeyCd3eFh2XGh8yH0ao iE9OfKQyKKRK04LFdg4za7PxmNpnd0tOqhag58HY1e5QywMvYS6iJmORA7olYK2eEGlu IcUARJj6JEBYY468D1R83zXsZ9KOhydwm+31mNdcDwkVgtwRV5AalniAyzIlHuenN5fg B/Nw== 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:from:subject :message-id:references:mime-version:in-reply-to:date:dkim-signature; bh=BaiJ+rWGolW4ovI22gadBn2AFu8/7ikdaAkBdyz0qCk=; fh=nIUDfiP2BouF32OeSvB/mSwr3UEvT+eSGY3stkSTimE=; b=G27QFU9IaMR++e4fsCEY0078o6JGcnPcY2PQMLdq3883CV8AVQdWNreI59k5qmLwu5 J+9cRa1Ctvs2b57vtv/e6CseRRbYaNvuKWhP4aXHzxd7z3ZlT0Bbe0iCJo/yz9eYmaZb LUFh3gMuZerK/4/oy8b5KIXfkp4Nu/6gwFI7xvf5FHPu7tSCMJf0Jg2xZEZvzkKaf4eM wEm2X4ZlJJwuIntlFWfFlOBUL8zxgmNG4tNyCoVhskOmE1Qi1p/LjEMdB5jBp4uYqM6U cfe+Utf6+vwopdzic4rm3vfUpbUZpD+ymDtfktoyG0hIdMn/+vmfJQKSiaSQWtxBGj2i XQCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=Y0vPhLHC; 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 j17-20020a170902c3d100b001b9d090151esi7745127plj.237.2023.08.08.11.56.01; Tue, 08 Aug 2023 11:56: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=Y0vPhLHC; 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 S231205AbjHHRbi (ORCPT + 99 others); Tue, 8 Aug 2023 13:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231719AbjHHRas (ORCPT ); Tue, 8 Aug 2023 13:30:48 -0400 Received: from mail-oi1-x24a.google.com (mail-oi1-x24a.google.com [IPv6:2607:f8b0:4864:20::24a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D85B58DCD0 for ; Tue, 8 Aug 2023 09:13:19 -0700 (PDT) Received: by mail-oi1-x24a.google.com with SMTP id 5614622812f47-3a1c2d69709so10459480b6e.1 for ; Tue, 08 Aug 2023 09:13:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691511156; x=1692115956; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=BaiJ+rWGolW4ovI22gadBn2AFu8/7ikdaAkBdyz0qCk=; b=Y0vPhLHCDOVmbRlPiMRlxigWmq+iVX9ybHKXxo1uC8+MlKGzliduvDev6X6k5Okqjd 9W6gq5be5vIE1tNzno16uDH/fleOOUuHDvg7FrXFnHYjdQNUDFSCj6i8oQAPwbCzGwp9 Pg4X41YFC9RgSbxKLF5Vi5UJ3GY/waHbmhVPZ0FucV7ra5NqzGsVjeLDpjAxlzmP9OV0 1dfl9tdmn2xaJ1QBTL/q6/JBz2D1ehSWW/Ifuf1DjxH0+lXMxYqgl2DZLFwTQODAWP2x kH5nImhE3/AT8oNfcu4pijOXT4eKRQioIfIriqO9H86EACWVN3PXx9JgejvEmeP1ORs+ lIOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691511156; x=1692115956; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=BaiJ+rWGolW4ovI22gadBn2AFu8/7ikdaAkBdyz0qCk=; b=IimVgAgwEgq/WncFnrB4IW76019X7KF4mC5VqEJuvPe4wIGz1zAMfxAYOsRhND/nCb Fd5J2I6C2TFzo9cwZSYnGo832Ct+VCRR6u+4or7tv/auKUFwxQs1k27lvrWimKObFHkI e7oY9HhxbJatiYBGGNGhSVhN6eu26pkobOJ4Ys7ZOs5vrfQApcTU8laK7SY7d1N+XPoG rMIAcGu4cfGyNA+IAQqsQmwT9Dg2xOwtbdFsypSrIs8k7yEAqHqMNEN8anQR4zTF+ElE tgJRrN8Emvm6deZonbRd5NbJdq2F3jXCjMGvh235QNL61C01y+w72agNiRQ1SoyGCETF 5Flg== X-Gm-Message-State: AOJu0Yw+xx4wMKVhK89cd5lQC3tyd6XEKKJiNWRsTPcJ4DYFnhWto1ZJ AAsoBhfSGzDqDAsy/W4m3TWRZSuNmao= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a63:3c11:0:b0:564:179a:d5cb with SMTP id j17-20020a633c11000000b00564179ad5cbmr56114pga.8.1691507265754; Tue, 08 Aug 2023 08:07:45 -0700 (PDT) Date: Tue, 8 Aug 2023 08:07:43 -0700 In-Reply-To: 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> Message-ID: Subject: Re: [PATCH v7 02/12] KVM: arm64: Use kvm_arch_flush_remote_tlbs() From: Sean Christopherson To: Raghavendra Rao Ananta 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=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_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 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 sen= se to rename all the common APIs and arch hooks to match. However, x86 is rife with the "remote_tlbs" nomenclature, and renaming the = common APIs will just push the inconsistencies into x86. While I 100% agree that = the current naming is flawed, I am not willing to end up with x86 being partial= ly converted. I think I'm ok renaming all of x86's many hooks? But I'd definitely want i= nput 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 t= o ignore the poor "remote_tlbs" naming and tackle it in a separate series. Sorry for not noticiing this earlier, I didn't realize just how much x86 us= es remote_tlbs. > (spiraling more into this, we also have the 'remote_tlb_flush_requests' a= nd > 'remote_tlb_flush' stats) Regardless of what we decide for the APIs, definitely leave the stats alone= . The names are ABI. We could preserve the names and changes the struct fields, = but that would be a net negative IMO.