From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1A7CC636D7 for ; Thu, 23 Feb 2023 09:04:10 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4PMnBx2Jg1z3cd8 for ; Thu, 23 Feb 2023 20:04:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Sxh03O33; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:4641:c500::1; helo=dfw.source.kernel.org; envelope-from=maz@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Sxh03O33; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4PMn9v3x8pz3bfj for ; Thu, 23 Feb 2023 20:03:15 +1100 (AEDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AF3B6615B5; Thu, 23 Feb 2023 09:03:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DE73C433EF; Thu, 23 Feb 2023 09:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677142991; bh=A6FgptrrYUoOz1tvlLQnDnjqNkLOWOvmXcwfXX55TRM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Sxh03O33j2ejJ4jpoNj45YBc0t3nTQjBMx6/t1CIuoWEq6bq6RJ5MbkMXBaziU7XB jBiG0NPfBzCsygzhwl7U70Ww5RfkjSnt+X2BTV6rjwgAaGTiYqUcba9/0pT+io/mCD qZjDVFRaRc9HIBivB+ue1JGVXAtvvm1UbhzqMGcLED1yhWHHCkwegOuY4HGxgzRiCg f0Bo1SH/aireTElW18d3BAsiBz7JJnD51MrXyy0cHzXaSpbqcVGW4LFW+QXo/O27ev dYaWcQfX+BrgYmW9lN4LpflDeWLq0Uvns/HwiYnDQcTdPzrAi97W/g4IH1TOpboAVX U2MKuHMptf1ug== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.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 1pV7VM-00CaNM-TI; Thu, 23 Feb 2023 09:03:08 +0000 Date: Thu, 23 Feb 2023 09:03:08 +0000 Message-ID: <86a614ycs3.wl-maz@kernel.org> From: Marc Zyngier To: Yu Zhao Subject: Re: [PATCH mm-unstable v1 3/5] kvm/arm64: add kvm_arch_test_clear_young() In-Reply-To: References: <20230217041230.2417228-1-yuzhao@google.com> <20230217041230.2417228-4-yuzhao@google.com> <86lekwy8d7.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 (aarch64-unknown-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: 185.219.108.64 X-SA-Exim-Rcpt-To: yuzhao@google.com, will@kernel.org, corbet@lwn.net, michael@michaellarabel.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-mm@google.com, akpm@linux-foundation.org, pbonzini@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-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mm@google.com, kvm@vger.kernel.org, Jonathan Corbet , Michael Larabel , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvmarm@lists.linux.dev, Paolo Bonzini , Andrew Morton , Will Deacon , linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, 23 Feb 2023 03:58:47 +0000, Yu Zhao wrote: >=20 > On Fri, Feb 17, 2023 at 2:00=E2=80=AFAM Marc Zyngier wro= te: > > > > On Fri, 17 Feb 2023 04:21:28 +0000, > > Yu Zhao wrote: > > > > > > On Thu, Feb 16, 2023 at 9:12 PM Yu Zhao wrote: > > > > > > > > This patch adds kvm_arch_test_clear_young() for the vast majority of > > > > VMs that are not pKVM and run on hardware that sets the accessed bit > > > > in KVM page tables. > > > > I'm really interested in how you can back this statement. 90% of the > > HW I have access to is not FEAT_HWAFDB capable, either because it > > predates the feature or because the feature is too buggy to be useful. >=20 > This is my expericen too -- most devices are pre v8.2. And yet you have no issue writing the above. Puzzling. >=20 > > Do you have numbers? >=20 > Let's do a quick market survey by segment. The following only applies > to ARM CPUs: >=20 > 1. Phones: none of the major Android phone vendors sell phones running > VMs; no other major Linux phone vendors. Maybe you should have a reality check and look at what your own employer is shipping. > 2. Laptops: only a very limited number of Chromebooks run VMs, namely > ACRVM. No other major Linux laptop vendors. Again, your employer disagree. > 3. Desktops: no major Linux desktop vendors. My desktop disagree (I send this from my arm64 desktop VM ). > 4. Embedded/IoT/Router: no major Linux vendors run VMs (Android Auto > can be a VM guest on QNX host). This email is brought to you via a router VM on an arm64 box. > 5. Cloud: this is where the vast majority VMs come from. Among the > vendors available to the general public, Ampere is the biggest player. > Here [1] is a list of its customers. The A-bit works well even on its > EVT products (Neoverse cores). Just the phone stuff dwarfs the number of cloud hosts. Hopefully your patches are better than your market analysis... M. --=20 Without deviation from the norm, progress is not possible.