Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp41154ybf; Wed, 26 Feb 2020 08:28:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzDd4iQphJ5IZaYPmYUu+tWpmBsyL7oL1LLNVKdRq+yU4rYZXlx40epQi0JLLASb+DhysNv X-Received: by 2002:aca:b483:: with SMTP id d125mr3922511oif.167.1582734537064; Wed, 26 Feb 2020 08:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582734537; cv=none; d=google.com; s=arc-20160816; b=RZsUgQhXUJ+ywFY7GyRWPChiUuN/VCWlqF64iV28lKkhgOFZmQ5bqsBZBVu+wV+2F2 V+mro3dKJkK1xeojMMPTc2mkB8vP2MLv4uA4djuLI0TaSFM6xLmhPZ/0BRTtbZRrVhqf 9JwZNwmev5u55RVEcEXkTzWyual+Kg/YDTScNQwHvL0YN+yeTji4Q1z3m087Quh1j0fL KT/EgIb69T/ZPByxRMtL+x6t+DAmSLzjuwPjJXWjKNWiCritwLQcFVwjraibJhZw9v+I Vd0Jdv97ichzwIn+NCogxPfBzJcnoxQWb4VvUa2RjzxFdTGvjcgwlox8WRlpDgN18HKN 8MVg== 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=cxDmKJums1Yw5hsbamtZg0/vSQBgjr5D+7wgCmatioE=; b=qqNOM0EyVEJN1Q8eRlbKBUNK6lTzJ9lDYgOYJ5Mj71HWcc5VDN3AwtqKsAu5am+6zR g6eteqGMJMHYmxgHQ5/qZe/TmbT9X303DOubvaFwIwBTEIO426drGpIze6mHgymFoq5L LyFpyAf/zLR6X6mZoOadvZ965k0wN/WUG781aNGuqy4yVWB//cXzvE0oyfl2aQw0E246 5R/ZEXLMYVLiiNuPO8ef/1WwaLShyQDe6I8Z9YQuhXPcGrUHu/d+5Eh8YciqXFeAMwh/ ye78++we1qbx/Bt6C7U7qZ0gS//ckg6ekTsSIIJvFLIKqIQjwoYlcdYPxgh5MgP/lMMh gYeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=tw6kKo2D; 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 p1si37617otk.42.2020.02.26.08.28.44; Wed, 26 Feb 2020 08:28:57 -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=tw6kKo2D; 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 S1727173AbgBZQ20 (ORCPT + 99 others); Wed, 26 Feb 2020 11:28:26 -0500 Received: from merlin.infradead.org ([205.233.59.134]:57622 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726764AbgBZQ2Z (ORCPT ); Wed, 26 Feb 2020 11:28:25 -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; bh=cxDmKJums1Yw5hsbamtZg0/vSQBgjr5D+7wgCmatioE=; b=tw6kKo2Duv8Hk8DCmU2Xw/Ra/J Qnq5Oq+a1gJJf1W+EIJgu71Gh+AELvvQbZryiwZaIIQiHvqweVidrqUqkMKRu/TdF/Yv8FBFzQ1iW J8HDAjmwh6oI3xPDzfKwH+0jIUV5pQGwlAiz2zhTZMAfWQlRSbAxsscMr3Y0qPGXB+GyOa6bvgA8d PWOCPkck7w9LLWjBAVW4oc3dKLYa/HS9aJ36azl10ZoeLRJ0AiApUh+YNrq4eGxFEWJhX6a4xXdQt yaRjCjPmeRF4dtUHulb3JolKDB+RwKalmxxPveWvINFMTsjho+0tV/ISCHaqqTN9xECPJlr/QS6Wy bhemJkyA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6zXh-0001Jt-FF; Wed, 26 Feb 2020 16:28:13 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 3F689300130; Wed, 26 Feb 2020 17:26:16 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BF42F2B746023; Wed, 26 Feb 2020 17:28:11 +0100 (CET) Date: Wed, 26 Feb 2020 17:28:11 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: Thomas Gleixner , LKML , X86 ML , Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann Subject: Re: [patch 13/16] x86/entry: Move irqflags and context tracking to C for simple idtentries Message-ID: <20200226162811.GA18400@hirez.programming.kicks-ass.net> References: <20200225223321.231477305@linutronix.de> <20200225224145.444611199@linutronix.de> <20200226080538.GO18400@hirez.programming.kicks-ass.net> <20200226092018.GR18400@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 Wed, Feb 26, 2020 at 07:11:39AM -0800, Andy Lutomirski wrote: > In some sense, this is a weakness of the magic macro approach. Some > of the entries just want to have code that runs before all the entry > fixups. This is an example of it. So are the cr2 reads. It can all > be made to work, but it's a bit gross. Right. In my current pile (new patche since last posting) I also have one that makes #DB save-clear/restore DR7. I got it early enough that only a watchpoint on the task stack can still screw us over, since I also included your patch that excludes cpu_entry_area. Pushing it earlier still would require calling into C from the entry stack, which I know is on your todo list, but we're not quite there yet.