Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3081535imu; Mon, 19 Nov 2018 10:19:48 -0800 (PST) X-Google-Smtp-Source: AJdET5dkU883DWkDzaiYetICcEQVE1fi++yc6HoMXn/bb5xysQDirFux4ZM59R5Gl3DuDpTrQUUR X-Received: by 2002:a63:1f1c:: with SMTP id f28mr21099559pgf.193.1542651587958; Mon, 19 Nov 2018 10:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542651587; cv=none; d=google.com; s=arc-20160816; b=vuXmypNAUd7zNDgr+Mtv/rvTOZ7KCVj2wYs4m/6sM31l+1O8SB3Pva8Xg+cjdRPEcv 60saEw7NdZSd5KkPcvPFVl7yLh3wAH+syTtK/OfSjcvc0rPeopO/4ZB7jiAFLsn7g08X qR6qZJ17ZIUHwxFV8e+gFjDRJd5S3wRhlzXHiN+6+P2SP3bcfO4TANl22HUruvJJkXI3 9J/nxk9Fkl+a40+yx8mQXlPs0OklSRv86/tbyVs3LlosfRj+3FVAycf9t9vRYyloZLr5 oVLpviUSfQ2isYvjVYwqTAtr4R0PPs4eZHqdBY+dQPGxFTua74fXIacgmY+DRG+98UrC uWdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wR5TUvgzYZKMllIvbIlb8Ypd8osH/wPHSts0wm8FvB4=; b=qTXNYbPejc+KuFn/3A2FOg4h9SghPHKgx+5mMBk1J4yiuypwuF1bz/cQOPhYouw8Bf 85TKN3EJwQk1nKGDFQm74XttjUsifOtNxOWaS7ybpCK4W1ZIgH803wwIAmiyVJ9+Zr9i ctV8Bd6kR4OavHvlO7hPWj1izyNdfggboIKbUtn8I/MJBGgEchiEEdeuoAxxcQ6BYLEC FKFOPp2/HsFTuk8XNFqrpYgvqEyoYcUZ3mNaUDMzDxvd4Vh6DGoXuQ6ch3niURAiQegJ 0As2Ku4Hq9vhs9hkGkRJdqLo6HrjkXuIbtE51ImWcNmoHeX8ylKH5bptlSvguS6g74Cw 8Uig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32-v6si43035934pld.70.2018.11.19.10.19.32; Mon, 19 Nov 2018 10:19:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730160AbeKTEmR (ORCPT + 99 others); Mon, 19 Nov 2018 23:42:17 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:39406 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729975AbeKTEmQ (ORCPT ); Mon, 19 Nov 2018 23:42:16 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1gOo72-0000l6-F0; Mon, 19 Nov 2018 19:17:32 +0100 Date: Mon, 19 Nov 2018 19:17:32 +0100 From: Sebastian Andrzej Siewior To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Radim =?utf-8?B?S3LEjW3DocWZ?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Rik van Riel , Dave Hansen Subject: Re: [PATCH 17/23] x86/fpu: Eager switch PKRU state Message-ID: <20181119181731.bmzbkdwwwt4kbcso@linutronix.de> References: <20181107194858.9380-1-bigeasy@linutronix.de> <20181107194858.9380-18-bigeasy@linutronix.de> <1d4b7b5c-9c3d-1ef5-3336-b7945b7978d4@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1d4b7b5c-9c3d-1ef5-3336-b7945b7978d4@redhat.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-08 12:12:52 [+0100], Paolo Bonzini wrote: > On 07/11/2018 20:48, Sebastian Andrzej Siewior wrote: > > index 375226055a413..5b33985d9f475 100644 > > --- a/arch/x86/kernel/fpu/xstate.c > > +++ b/arch/x86/kernel/fpu/xstate.c > > @@ -811,7 +811,7 @@ void fpu__resume_cpu(void) > > * > > * Note: does not work for compacted buffers. > > */ > > The comment is wrong, which was already the case before but it becomes a > bit more important if the function is used outside its module. let me fix it. > However, why not use get_xsave_addr? I don't see why it is important to > skip the checks, and if it is it probably deserves a comment. "Raw" and > double underscores in the function name is scary... yeah, it is scary and only those that can face baba jaga may use it. I though it is a fast path and it would be okay to skip those checks. However. Let me fix the comment and use the normal function like everyone else. If it is too slow then we can still short circuit it later. > Paolo Sebastian