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 X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1255C433B4 for ; Tue, 18 May 2021 13:03:48 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CC3C60FF0 for ; Tue, 18 May 2021 13:03:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CC3C60FF0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JQ0Tk03UX7cUy8s+w3/mkr3fzyzFKef1OHokHRDvJoA=; b=mcbsseQbl6ZM+8bRddo4hu3ME o+2xcs2dpurft5vg8MYYO5Y1Q0yOSkxVwSRiHr6FfEF3J9fHqAUILKiZhEz8oIL0KaMyVKwh2b2ra +kSXcE4j8Af5z+ynAraSvRf9dmg2F6hFheMtp6eQnIhbqoBIq7Tv1edXwqVl/cVM2rihQ0rLsz2vN lZ6zbPLN7VpDmPzjMm1DzF20vjAOo5FC3W0NeWh5wy39wKP4WHcNsNayeztSc3kJHchCgtslioy5k IX3OgwrdiZwDHHgI0hUVqDzesFOS9dtTI8XBasGKx3USPIh2vj9br+T9Z5qVDZcHi3jjqOuE55tel 8iAzutfCA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lizMC-000pVo-Rx; Tue, 18 May 2021 13:01:57 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lizM9-000pVF-PN for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 13:01:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=8LRBU30a9VPb8uYUzXmcicDAn4cBca5G42Ggo+Z+tCU=; b=ADlC8K8wBIikSL+KOgUKnhybPC iabsLZeNgvd4QVETG3hMtO29YStdq9TQlZMMnJkBtRgzqHxmOA9ksfTxY0Jb7YpJ0/uahplUd2ohz oVqTscmfUNEQ7TJd/LM63k6ARNkAHwPXAIwlWFF95tE6J2yddRlMyurMHpqyfyLLxw6HYkvpz35bD Ve9YAdEpAREMezCK5HdyPfOWCNLicBPoXvZt/aOaMKXxVnl9TKKJkAdKOamt40nWw5lGg20cQ8yhD 4YIvVi1OXAe5zRZkMdXVlkx6s4GE7qIiBr3ZVbBgQnI+sIOcBWLZxZfyVB8r7RdUcyy0HI3tjxiWo qV3myPDQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lizM7-00EfT3-61 for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 13:01:52 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45B2460FF0; Tue, 18 May 2021 13:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621342910; bh=l/Kn51tsKW/Sf/ZS687FVJmjo+ObmkRVOcCHL47xkJM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DQ2Kb3haJdS0v4M7eEd8sU8MexKbMr1VYsYVFZvUEYwylWuFYw9ApocN819gLNKkj EDgWJs/nRqQwRUwq7nlH0ZYTGSxRVe7iO4Wpz/x3Q4DFgSE+BtPgt8St7+kolSBjLe vn7H+xVpfZoI994wkdE7L5imd8QWKoXZp6y7J3UsPNt08lbQrCjL35ntap5llE4+uH fVstnnbcgRxAF14t9/iYRYysjQwIj0n9h8q04zGPKwatL/Gyft1QSm/BGFwLJKEa4z GfpknY3FU1INdUnsJrdqaUad/qvMuCUC3zVmly2zmUg1fGU1mO28thu0skkXzyNrgw nBOMhLPDP5yDQ== Date: Tue, 18 May 2021 14:01:06 +0100 From: Mark Brown To: Marc Zyngier Cc: Catalin Marinas , Will Deacon , Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v1 2/2] arm64: smccc: Support SMCCC v1.3 SVE register saving hint Message-ID: <20210518130106.GC4358@sirena.org.uk> References: <20210518100919.6674-1-broonie@kernel.org> <20210518100919.6674-3-broonie@kernel.org> <87pmxotirl.wl-maz@kernel.org> <20210518115348.GA4358@sirena.org.uk> <87mtsstf15.wl-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: <87mtsstf15.wl-maz@kernel.org> X-Cookie: Radioactive cats have 18 half-lives. User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_060151_266088_10FDFA48 X-CRM114-Status: GOOD ( 16.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1439248518914949525==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1439248518914949525== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4ZLFUWh1odzi/v6L" Content-Disposition: inline --4ZLFUWh1odzi/v6L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 18, 2021 at 01:14:30PM +0100, Marc Zyngier wrote: > Mark Brown wrote: > > I do see some ifdefery with __KVM_NVHE_HYPERVISOR__ elsewhere which > > could be used to take care of that particular case either by > > providing a __hyp mapping or just not trying to set the flag there > > (the latter seems safer) but I'm guessing there's others. Do we > > have a reliable way of identifying such contexts? > __KVM_NVHE_HYPERVISOR__ usually is a good indication that we're > compiling for the nVHE EL2 object. I guess that skipping the > optimisation would be good enough for KVM, until we decide to provide > a nVHE-specific helper that uses the private per-cpu information. Yes, I think skipping it for now is going to be safest and it's certainly easiest. I didn't *spot* any other affected cases, but eqally I didn't spot this one first time around. --4ZLFUWh1odzi/v6L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCjupEACgkQJNaLcl1U h9D6HAf+MLI0q5Sucj5SR/cl9/PhEn/qcIZipGpAFKjerCehAXrxWRTqGyemP/Q/ eweVyUFjzW2gL/WRpu7xuoK2hzM3eIu7y5UGbiTohh3yHLSAiExYpBGXw0bJugMp 3qALKcjJCtvWP3thiKvnOQDlXLz8X/zAmsBnOchwu3Tvd5K0xM8fML0oQFqigddV fN2t83T1K+xoEtWo96lBx+1GVa4W7FlQ24v2CW/FHtpokBf+lCpJyBufQii1+fGn nj3boCOUGXh1oV1xkP644Vi0FpCl+tvA9cqSDRj6AYSByke5NukrIPtLlPKHSrZf +SJ59c0eXoGFBuN0pfIgDfiQx8XYEw== =hRJc -----END PGP SIGNATURE----- --4ZLFUWh1odzi/v6L-- --===============1439248518914949525== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1439248518914949525==--