Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp965616imj; Fri, 15 Feb 2019 09:42:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IaRsxOSTzNJGEpVn0+lLfrf1Yes/6wxsTLrKHUCop57DY8lhS/ivnRj/QASSAK/xoaczcJY X-Received: by 2002:a63:e74e:: with SMTP id j14mr6525116pgk.449.1550252578125; Fri, 15 Feb 2019 09:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550252578; cv=none; d=google.com; s=arc-20160816; b=AsJpsRKyUhR4drE2bMrrGNYUVffJyBKYjPD738GhgFkcq4ggBcsSvnD6my8XqGnY4E 3pyoBszFeKBxvQHR1ThRYq11eFFJpO1KJD2fpZjW1qxNzbwXbHveg0t7AoyYSYJB3I2R AIvwptqFaYVL9YIRlPtE4OEx3siWMq8WMBPihxDJCcAKWam4ACQ4reJfeX19ingN366T +bBdnqLBHc4UgbqvDqj1r0Q1+k0kqX1/JS07JJXSGO4aoltJmV50IRSfSpbxH8vwM4+V 4wOrS4JHmZdaapLp0RTCoQnWBRPdVRJWWxmwTrRm6/+2lAczNSxUcN0nOwKfSfdgos4A pmFQ== 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:dkim-signature; bh=3CyfjezA+S+2MaTUVDQw70hdDLbw1EZGPKtc0T6KeLM=; b=n7MW7JPBPUwoLJ5QRbXTmBUXvcgxL5rZI3Da9YFsyn6HS7YDuG8Fr+oFcm3LzSQc9J VWXc9wcpYbUHYqaM5Jj1Ei9JCWFZSB8gKTg4Uz9/jPNl86a5P+huxsvLZ94ErKlkybZ7 wDCz3hCIEE/US2eqfu+GyMSw6aXlmDhRk/6gyO1EyitKySF9YkcZDUcxFwK5l/4yl4UU 6KrWUTiLTDO+BgI4sIbtzOwa4gjI5wArQ/VPDn/K+kYdOLMTvDiB2lrfV9mZLMGiJSZz +UXSkOiTVdqDeTxkJcwpzNRMCloTrgb1iq3A9WB+ByVW4ZqN/DfF5sL9ycrrUs8btb5X J09A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=URdkLOaQ; 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 d142si5667081pfd.93.2019.02.15.09.42.42; Fri, 15 Feb 2019 09:42:58 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=URdkLOaQ; 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 S1729731AbfBORkz (ORCPT + 99 others); Fri, 15 Feb 2019 12:40:55 -0500 Received: from merlin.infradead.org ([205.233.59.134]:51032 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726045AbfBORky (ORCPT ); Fri, 15 Feb 2019 12:40:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; 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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3CyfjezA+S+2MaTUVDQw70hdDLbw1EZGPKtc0T6KeLM=; b=URdkLOaQXugoIEqVbkxev5aqv BM+wmv/VzK3ZWEAoY6OfpTaKIqaJWUCzgq3ziASmdAS5rGK1A9zsBEg8Kg/QUg4Iq69ovNPoAjGr5 30DSNXn2aU8qJ+w+ycW0U+KUxXsDpse+8XzyY4Z4Z8Wy72rYRSUsO26jwXN+uAo+DKYxCYtGgsoUR U/vSDP8EjnMsbj2GPBo6LvdCiAaeFLiGDeEgXKpw8lYCLJBn7Iun75ZJgjbsBdYtLSFXo4tjgtSAj Cqkr7W+TwfawZzmUBd8n5AosfvKRp06G+ZRyGkYcD9wYqgn5ikdzmMFolLM4yqkDsSWR0bUbPDWoj r+p9EyhsA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1guhTb-0008La-CH; Fri, 15 Feb 2019 17:40:39 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8D607233D2080; Fri, 15 Feb 2019 18:40:34 +0100 (CET) Date: Fri, 15 Feb 2019 18:40:34 +0100 From: Peter Zijlstra To: Linus Torvalds Cc: Brian Gerst , Andy Lutomirski , Julien Thierry , Will Deacon , Ingo Molnar , Linux Kernel Mailing List , "linux-alpha@vger.kernel.org" , Ingo Molnar , Catalin Marinas , James Morse , "H. Peter Anvin" , valentin.schneider@arm.com, Josh Poimboeuf , Andy Lutomirski , Borislav Petkov , Denys Vlasenko , Thomas Gleixner Subject: Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch Message-ID: <20190215174034.GP32494@hirez.programming.kicks-ass.net> References: <20190213144145.GY32494@hirez.programming.kicks-ass.net> <20190213154532.GQ32534@hirez.programming.kicks-ass.net> <20190213222146.GC32494@hirez.programming.kicks-ass.net> <20190214101429.GD32494@hirez.programming.kicks-ass.net> <20190214193432.GR32477@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 09:18:00AM -0800, Linus Torvalds wrote: > On Thu, Feb 14, 2019 at 11:34 AM Peter Zijlstra wrote: > > > > Something like the below, right? > > > > + frame->flags = 0; > > + frame->flags = 0; > > Those are not valid flag values. > > Can you popf them? Yes. > > Do they make sense? No. > > It has the IF flag clear, for example. Is that intentional? If it is, Uhmm. yeah, that's bonkers. We should have interrupts disabled here. I'll go read up on the eflags and figure out what they _should_ be right about there.