Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp199623imj; Fri, 15 Feb 2019 21:38:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IbJP/pruLh5OCPltMkiKoWIUizYYo2zaI0om99n+1jFzZqGUmQJjUrSPbpaO6Ss6yt+fAxP X-Received: by 2002:a17:902:1:: with SMTP id 1mr13250918pla.276.1550295493169; Fri, 15 Feb 2019 21:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550295493; cv=none; d=google.com; s=arc-20160816; b=si3ulVQvX3ynMVaYb36po7rsaG1kS5dyZgTETzVmkEhUB77hJ8/0EVTCdz4mx6Xr2Y CcLCORQsPhip9EwSF9g1HaFDz69DzEs8fN9JRjkA0Ga0nawqvT3GeTYl0l+73uS6sVnv 4q8vCgLlaKbicCxUG6HQc9HKmFYUTlMJPt5wJu6NnEqtr16/9+DOQLnxFW1p8d7SPj3N L/9kOxtv4V7qLtB1zHWDHPMw6y/DGi2CvaiCNA1D5UfqKucn0XkViZO9oFFof3nlJ5wz XHA3EO3pWo3pggCeiuVDfU/4VOsTAv3aymxWSDtkvqkSDdO+zOe7Iod+X1A9ozA+weVo 72pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=PiEKiV7OXlo1L7Z9MWkQ2TibsoGawYs0+jN/HTFtj5g=; b=o/JW+n/eIUPGWTIw56zO50q9E3sWm1CAVLpxiKvySvv1jL6Z5e7VIDRbE2KHnEpOzC 8eB/CSfMIUUYW5a/tZ+4c+VrH6rZuxYSsC8JO7sENtBym9ibQsnIgK1iQixj5ap5hmKX +BMeHHwNc+CU8EOWbkpDMSR5gi+w/+bv9ghkZ7M7V8hZDjJDIDeW02B8iooXeCzMheLz 78HifpV92t3TvwxF2QPBaNux+tJoRpE3W5sXMHW7anQQezA0WU4xJNN1Bf7LNfyC/Cno /4/uo51QDtWjBfAtuSJVNxTJlXRYR4PQjkN+w4qngzqijEwNLsdDWFoQ9X44Q5yqMtME KXgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=qaKlVpIb; 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 k86si490898pfj.145.2019.02.15.21.37.46; Fri, 15 Feb 2019 21:38:13 -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=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=qaKlVpIb; 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 S2389577AbfBOS2L (ORCPT + 99 others); Fri, 15 Feb 2019 13:28:11 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46010 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389396AbfBOS2L (ORCPT ); Fri, 15 Feb 2019 13:28:11 -0500 Received: by mail-pg1-f195.google.com with SMTP id y4so5166159pgc.12 for ; Fri, 15 Feb 2019 10:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PiEKiV7OXlo1L7Z9MWkQ2TibsoGawYs0+jN/HTFtj5g=; b=qaKlVpIbVNWs/vA9F9I4fH6Hr1NEm+3INn6ksJif61pT0zQ0pU5TQPcm7RMEQM9qZu tPFzbJO1pZgS+7nsx9rA00Cxijuceef3F7/xySpBGtEKB/cT6+O3yh23jrtXXLAD1OXU nhpBI3JtB9Nze2OFJum33/piv/V7VUxKQ4ejCiqhwzt5cnkHJOioWjjFSFhNNor30r9m FAV8g9C1Q/QHIJPRU/gJ7Qbl2SlUCR6/Hbrf89ZdW2usDyjH9/3f28fxiAFNEjJ386n7 ClYVpeoDQy2UIBEQm1z6tUwRG1eRZa0ao5QeMyQZPBBmQ9GWU42ms4iFAU1CmBFar2Ad /H1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PiEKiV7OXlo1L7Z9MWkQ2TibsoGawYs0+jN/HTFtj5g=; b=Fo0HxmzNkvig3gBaXfoPb6y5V5FfxiIaiqMq/G4DRO65azNzeOcdeeLpqudF6ckwS1 OpWM5wVHLArp+kUjPrX9rFJUNh8mYnt1C1CrSrRUSEaEOGoHb9pDODOodZy0TB/HIZmq 9pag1wzEHlLQSVgDV/laUyNYTF2gL56lDMmp1AGB+8yOXMc4SCJTh3Fk1AM6YkkJhqF2 /uXMWTyyBmdy3Mv54xLSgEwIZO+g3Zbn0Nm+9tUT4099tjE/pmcxQw8noqM4QBAY32xc kMDTG0apcA01+D42bhNbV+ASVFXyOvFOsVzINHlXQz6WuEb0q9+yGLGpJT7wV1V5I3UR RdUA== X-Gm-Message-State: AHQUAuYcA6kG1yeT9+4IcaXFD9eIifZ5MW/XJliDiBapw695IDqzW+Sd 4F+MwO4bSX0KslHMXKFl/M1qog== X-Received: by 2002:a65:4c01:: with SMTP id u1mr6691952pgq.116.1550255290295; Fri, 15 Feb 2019 10:28:10 -0800 (PST) Received: from ?IPv6:2601:642:c400:7877:8ce1:4e59:b8f:be36? ([2601:642:c400:7877:8ce1:4e59:b8f:be36]) by smtp.gmail.com with ESMTPSA id v75sm10743292pfa.164.2019.02.15.10.28.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Feb 2019 10:28:09 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch From: Andy Lutomirski X-Mailer: iPhone Mail (16C101) In-Reply-To: <20190215174034.GP32494@hirez.programming.kicks-ass.net> Date: Fri, 15 Feb 2019 10:28:08 -0800 Cc: Linus Torvalds , Brian Gerst , 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 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <20190215174034.GP32494@hirez.programming.kicks-ass.net> To: Peter Zijlstra Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 15, 2019, at 9:40 AM, Peter Zijlstra wrote: >=20 >> On Fri, Feb 15, 2019 at 09:18:00AM -0800, Linus Torvalds wrote: >>> On Thu, Feb 14, 2019 at 11:34 AM Peter Zijlstra w= rote: >>>=20 >>> Something like the below, right? >>>=20 >>> + frame->flags =3D 0; >>> + frame->flags =3D 0; >>=20 >> Those are not valid flag values. >>=20 >> Can you popf them? Yes. >>=20 >> Do they make sense? No. >>=20 >> It has the IF flag clear, for example. Is that intentional? If it is, >=20 > 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. And probably add a comment near the POPF explaining that it will keep IRQs o= ff :)=