Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1943603pxb; Mon, 18 Jan 2021 04:17:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5PgRiU/nPjv1A+xH2S1H1yFsca/C3YFXmS81e54Lgn4WrMP9ZqCcob5fRmNBuxrsmRXKz X-Received: by 2002:aa7:d8c6:: with SMTP id k6mr6197253eds.265.1610972252457; Mon, 18 Jan 2021 04:17:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610972252; cv=none; d=google.com; s=arc-20160816; b=F7LBYoybnanXzlA66lmKCD3eh3OfHih4UU1uIUYOC2AqxoxzqpptNfAAttWiMF4d47 IzSyoic/WNnjSpdQWxAcKhO5yUW8cKXyJDCTG3/ikorPKQ0McF+pd9chdNYXjosi+DY3 qBj6LOaRuhJQB1k5ZEuwpBOXlYhmMCbw5M5MQraiuUWhmO/Oj2DrdM2s+fHGKEPEHuU3 Syf6jWvren5qx2tWrhtC/GQuecMGhfnLDZ4zz5LhIba8Y5y8SBCR4SOzdL3rolD501iD xcahRLJWtRBe03V6perZwQuxav4xs459Wg5nGdKI9yvE2Cyhu4fljINoqtsoJFngk6TZ JoPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nmMs60CXg56bKcV+GG3WyH3X0YvRDV08g9jfvgGBRrY=; b=XSFVp3w16V2hQ3U+06BGv7mapUgVI2B4QrsjgPz+g5THXiBV8I9Q9pcBOe5Oc00j0t gXWjWmqPsujMtDVM3DVcsv+pKdFWcd3JKdbBIyjEvMXimsWn6l160vRD7W2E7NiWnuWW vffkDPEyhe24CaG4xIuuB3eR1e4lJus/Sb0HAAaMT6GDotJ/SRQZyQGvHKVHOYCDgA5u 0h9cFSomPASdZfvs6VOk7rjlIhXW2E1qf0ehBreMtS9xDnjnO4FmB2qzb5z24W6Gdcs5 Atuxte6e/Xr+78gDmL46brTnKlRB1Y+Fl/LpDxVB/SPUFzCmoh9hXyqBwptG4kzoRqAD RyPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=dZYArGl7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jw24si272351ejb.67.2021.01.18.04.17.06; Mon, 18 Jan 2021 04:17:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=dZYArGl7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391255AbhARMO6 (ORCPT + 99 others); Mon, 18 Jan 2021 07:14:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391119AbhARMOd (ORCPT ); Mon, 18 Jan 2021 07:14:33 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B808C061573 for ; Mon, 18 Jan 2021 04:13:52 -0800 (PST) Received: from zn.tnic (p200300ec2f069f00ce44ca2515680e14.dip0.t-ipconnect.de [IPv6:2003:ec:2f06:9f00:ce44:ca25:1568:e14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A6F6C1EC0323; Mon, 18 Jan 2021 13:13:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1610972028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=nmMs60CXg56bKcV+GG3WyH3X0YvRDV08g9jfvgGBRrY=; b=dZYArGl7SPgmbAjVaIaBNagYjXmYwyeuU0EJQjzf9Wt0WhmLSkvO8U444KtXlR34lFMPZa TrBR7FIOE6aowvA0pYuQ+jt1Y8QZLWcWufy6GToueCDDvxYiqai7KUAWVc1VzP9HHPCq+5 JqRo5V5yZs87A4K4I3YL5cEl8jIYddk= Date: Mon, 18 Jan 2021 13:13:27 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: x86@kernel.org, LKML , Krzysztof Mazur , Krzysztof =?utf-8?Q?Ol=C4=99dzki?= , Arnd Bergmann Subject: Re: [PATCH 3/4] x86/fpu: Make the EFI FPU calling convention explicit Message-ID: <20210118121327.GB30090@zn.tnic> References: <49aeb632f155569c75ea3cd78e9028cf7ba776fe.1610950681.git.luto@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <49aeb632f155569c75ea3cd78e9028cf7ba776fe.1610950681.git.luto@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 17, 2021 at 10:20:40PM -0800, Andy Lutomirski wrote: > EFI uses kernel_fpu_begin() to conform to the UEFI calling convention. > This specifically requires initializing FCW, whereas no sane 64-bit kernel > code should use legacy 387 operations that reference FCW. > > Add KFPU_EFI to make this self-documenting, and use it in the EFI code. I'd prefer if you slap a comment over the kernel_fpu_begin() calls in efi instead of adding a separate define etc. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette