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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8E27AC54EE9 for ; Tue, 20 Sep 2022 20:23:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=gOk5FYyzSRvksF2v/MRsE7IH7Pw+AHpd4nzYt3YPQVw=; b=nug7RdBr1ujFbNwUcMn3Xh8oXd aFZUGwxspJLHxZflvtTXMvda7ef0XXv+Vt2ummYSadyDofS5d3RRzT+BPs8CyWwB1TErFpCiKBiwV C/DyBkNk+tzzHt/FQ6P/WBtQZGC6UfusCpk3ZxytO00+G0vZgSLdNEwq+Vz5hh2VSyxXwBaj6PC0d +p+i98uPLdNuRErB+QaV+E2xqfHIEq9VhXK1ujBv2crA89SEssArdzwectHj9Z/ncgFu+K9ln2k6h QEBYF4OCgHkcAuWIizKoTgLCokNoVrm4Grape2eC5Jgi+MxpgFWH135Df8e+ZF2so+CR6rXebKtcJ CsXgh3uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oajkU-006F2C-4p; Tue, 20 Sep 2022 20:21:42 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oajkR-006F10-56 for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 20:21:40 +0000 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 2664B62163; Tue, 20 Sep 2022 20:21:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6CB2C433C1; Tue, 20 Sep 2022 20:21:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663705297; bh=l1GLTJA/m1XVU3ZjU0vCVTqDe9aGlD0ORTBZbGJFTqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B7Pc/7AJAACBcTX/ZhN+U6+D7NdIdYaRuZtAd1n38z1woZ/kmfQNYSsB10x8ly+uF /sqNI/kJ+x2ivzyZGB/xtl+nmm5eCxciT5aKXZOduVI8c5tYp80x8GjbRnnkcvF8+C dXB2aCTgyMQdLcXtm6hgnC9pDpUOO/+qsxpRvjzjyR7dED0Ujpnu/Ob/UX/DWHaAZZ p5e6+eUZdbOYSakpR4aRGzLr4rymQ6rKN/oW2zv/Q1vGC6LS9Leh/Z74HNsSZiH1t4 mbC9rZ9i6u+9GxJVhyMi6+nyOWXkItpcCk1otpkd6qh5lavQ1mjeDE7OEBEtgS5RfL v9Pcf7kG90IRQ== Date: Tue, 20 Sep 2022 21:21:33 +0100 From: Mark Brown To: Marc Zyngier Cc: Catalin Marinas , Will Deacon , Zhang Lei , James Morse , Alexandru Elisei , Andre Przywara , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/7] KVM: arm64: Discard any SVE state when entering KVM guests Message-ID: References: <20220815225529.930315-1-broonie@kernel.org> <20220815225529.930315-2-broonie@kernel.org> <87zgeuj8ry.wl-maz@kernel.org> MIME-Version: 1.0 In-Reply-To: <87zgeuj8ry.wl-maz@kernel.org> X-Cookie: One FISHWICH coming up!! X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_132139_248519_C342F837 X-CRM114-Status: GOOD ( 15.55 ) 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="===============0479811484954418878==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0479811484954418878== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="L1LA5iGPjhkxC+4F" Content-Disposition: inline --L1LA5iGPjhkxC+4F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 20, 2022 at 05:44:01PM +0100, Marc Zyngier wrote: > Mark Brown wrote: > > void kvm_arch_vcpu_load_fp(struct kvm_vcpu *vcpu) > > { > > BUG_ON(!current->mm); > > - BUG_ON(test_thread_flag(TIF_SVE)); > > + > > + fpsimd_kvm_prepare(); >=20 > Why is this *before* the check against system_supports_fpsimd()? I > don't think the architecture allows SVE without FP, for obvious > reasons... Good point, though now that I think about it I can't think of a requirement for FP when implementing SME (there's certainly not one for SVE). There's no use for that hook now though. --L1LA5iGPjhkxC+4F Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmMqIMwACgkQJNaLcl1U h9B3NAf/T8qpVcPV98O2cYJ+RYHrFGjL6ALzKAuvy82ZYqwwBrZEqlznTVx2opUU xegwtZjPU8W/oN74tefc3yvd31E0ILH6AmWr6Blchzoy0wG75KEZvTJcVJsYycK3 qC2DA2OnMIn9ZtjwDhk5OB21PoQL+V+4U6osCdCSqEsUWv9hq3nxMyUrepsTKRrn U3Lj7LyASjM/rYFY8guvzsk/NlYvIUAbZmyYGxWPd7kcsT+mAD3URPn1+IyTYQWv wf0f1g5aVXKQmHH0ALboh05bG4YOeyFT9qBfq1Q1P3EQ2I7ckJQUEmwQPTd6B5FK xYktRByXTG7pgjeAxhQ9CaJ3nm0J8w== =IUNe -----END PGP SIGNATURE----- --L1LA5iGPjhkxC+4F-- --===============0479811484954418878== 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 --===============0479811484954418878==--