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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 375F4C678D5 for ; Tue, 7 Mar 2023 17:52:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 22BE385C50; Tue, 7 Mar 2023 18:52:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="qYUvTpAQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C98585C0F; Tue, 7 Mar 2023 18:52:29 +0100 (CET) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 071F185BFA for ; Tue, 7 Mar 2023 18:52:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x835.google.com with SMTP id r5so15293469qtp.4 for ; Tue, 07 Mar 2023 09:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1678211544; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3qrbHeRFTS8EJf+JgULOBznKfHSQFxXgohBzwPsteMw=; b=qYUvTpAQqxL7ubCfCXBJNHGtg0VZALkKU3HZOxe8vXZn6+pice3QBj2UwUctD6NNq1 zcid/Wdt2nxYA0+V6xQsZjUlpVp+wGfKpWn795O/BoJPqDVpiBwFB3ky3F3qKrBUEgTv 33E5JlwAxfk3n0q8c7mP1Qj41iyJN36DPoe+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678211544; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3qrbHeRFTS8EJf+JgULOBznKfHSQFxXgohBzwPsteMw=; b=AJkG2RQYPH/mb8w3mIqtwlyMWntySFnEtlzYTeIwLJRyTL6y3UUy4BlA/wn/WmkDVn 2ff7PR27sSZbnxc+crC4pKhtga25WrCU6OvOd+b1g52MIwhtaSZr5Ww2qSR2Uz1UeD0q 3JYfaecVvuKk0meSwwhMuEQG0bfkrgxS9HOWs0Yg8mPYZNqOy538xpVYtQA5v43wtt9E UhqvUh5a+XNTymAukVxGntFIsAyLgx3p95Qq9ioHc06DlWTJo6WY14Hb8ovUkCAaXpmo JcxZhM+fMWrs2kvZFc+zzNcmG3/tYn91Pnqhv+kIGA/CRhBKMEUE1d/SdCSBf2n7D4we 4y0Q== X-Gm-Message-State: AO0yUKV2tqqLjkYi9MxIHAq7jaz9KY1ioVDE4s8LLhcuMxIVxj7Uz1sH ymQgY8QTipMQPdOWzKOF5PlY7Q== X-Google-Smtp-Source: AK7set8V3zoFaPKVEIVin4dLTjw6J5GPC0m/BwVnlk86hng/7WNCSCSpOEGhf0/qcIOG1yLloff8NQ== X-Received: by 2002:a05:622a:1443:b0:3bf:d9f3:debd with SMTP id v3-20020a05622a144300b003bfd9f3debdmr24529324qtx.6.1678211544425; Tue, 07 Mar 2023 09:52:24 -0800 (PST) Received: from bill-the-cat (2603-6081-7b00-6400-0000-0000-0000-036b.res6.spectrum.com. [2603:6081:7b00:6400::36b]) by smtp.gmail.com with ESMTPSA id c18-20020ac81e92000000b003b860983973sm9920988qtm.60.2023.03.07.09.52.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 09:52:24 -0800 (PST) Date: Tue, 7 Mar 2023 12:52:22 -0500 From: Tom Rini To: "Ying-Chun Liu (PaulLiu)" Cc: u-boot@lists.denx.de, Marc Zyngier , Will Deacon , =?iso-8859-1?Q?Pierre-Cl=E9ment?= Tosi Subject: Re: [PATCH v2 1/2] arm: cpu: Add optional CMOs by VA Message-ID: <20230307175222.GM968799@bill-the-cat> References: <20230208205428.1083689-1-paul.liu@linaro.org> <20230208205428.1083689-2-paul.liu@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6lobJYEsUY7t3Fw2" Content-Disposition: inline In-Reply-To: <20230208205428.1083689-2-paul.liu@linaro.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --6lobJYEsUY7t3Fw2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 09, 2023 at 04:54:27AM +0800, Ying-Chun Liu (PaulLiu) wrote: > From: Marc Zyngier >=20 > Exposing set/way cache maintenance to a virtual machine is unsafe, not > least because the instructions are not permission-checked but also > because they are not broadcast between CPUs. Consequently, KVM traps and > emulates such maintenance in the host kernel using by-VA operations and > looping over the stage-2 page-tables. However, when running under > protected KVM, these instructions are not able to be emulated and will > instead result in an exception being delivered to the guest. >=20 > Introduce CONFIG_CMO_BY_VA_ONLY so that virtual platforms can select > this option and perform by-VA cache maintenance instead of using the > set/way instructions. >=20 > Signed-off-by: Marc Zyngier > Signed-off-by: Will Deacon > Signed-off-by: Pierre-Cl=E9ment Tosi > [ Paul: pick from the Android tree. Fixup Pierre's commit. And fix some > checkpatch warnings. Rebased to upstream. ] > Signed-off-by: Ying-Chun Liu (PaulLiu) > Cc: Tom Rini > Link: https://android.googlesource.com/platform/external/u-boot/+/db5507f= 47f4f57f766d52f753ff2cc761afc213b > Link: https://android.googlesource.com/platform/external/u-boot/+/2baf54e= 743380a1e4a6bc2dbdde020a2e783ff67 Applied to u-boot/next, thanks! --=20 Tom --6lobJYEsUY7t3Fw2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmQHedYACgkQFHw5/5Y0 tyyYLgwAsWwYdpJT6d0g7jOhBsI1nrs5MIxBJZ8JnLf9BYCDB0mz0C26MV16H9Aq oBm8HvAGR0FENpTOKCJWyjgyVJEei6+/TlGggiCJ7OF7b+g25oG4GkTYeO8937Pt gcnQnSGz+HfUUtjOm6jUaYt6w2uWctCRk8qpVtzziwGST57tDaOehV6QxjXb1Pry pKrJrqy25x6cLByyc6i+eyZ+xcSdPbKmbtSXz7bop1C+JG2K3ojrA6p7QPlfiEXa DbHoaLCMC1MeXlAXp2Oov/pOnoshch46UrkIcry4T4g/sYlvpV7G0GJFYACarRdP gWRw0L/O+DEK+UQhSH2lcothnTRVgZs8zBxY7KR2wBvbGaKLJ2U/wDX2JnWfxT8/ ipsMMwMuZnlTThvEMQkHx9yMpf9g9HsmxplBzibwtlvEzd0Yv1abM0gD8PeW4IsQ pVBjy+1IGIXBZRz5kFFL00cCwqITTKtqdcVdKQ3V9kLJnfOHLcOIQB4QlaBfhglQ u6aDg1Fg =FMYD -----END PGP SIGNATURE----- --6lobJYEsUY7t3Fw2--