Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755684AbbGEInW (ORCPT ); Sun, 5 Jul 2015 04:43:22 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:35593 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755306AbbGEInM (ORCPT ); Sun, 5 Jul 2015 04:43:12 -0400 Date: Sat, 4 Jul 2015 10:12:40 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Denys Vlasenko , Borislav Petkov , Andy Lutomirski , X86 ML , "linux-kernel@vger.kernel.org" , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Rik van Riel , Oleg Nesterov , Kees Cook , Brian Gerst , Paul McKenney Subject: Re: [PATCH v4 14/17] x86/asm/entry/64: Migrate error and interrupt exit work to C Message-ID: <20150704081240.GA13132@gmail.com> References: <1a5858d079609a3e293123c9ee45de433a4e9c44.1435602481.git.luto@kernel.org> <20150702120932.GH4001@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1231 Lines: 35 * Andy Lutomirski wrote: > >> I'm torn on this one. In principle, you're right, or we could have a macro > >> CALL_ENTER_FROM_USER_MODE that does nothing if context tracking is off. > >> OTOH, that's also kind of messy. > > > > busybox has IF() macros: > > > > IF_CONTEXT_TRACKING(call enter_from_user_mode) > > > > Unlike #if, this needs one line, not three. > > I predict all of these call sites will get moved to C before 4.3. If not, then > I'd be glad to clean this part up. Ok, let's see how it works out. I think in the initial phase we should be conservative and should attempt to introduce as few unrelated changes as possible, and get the conversion done. The current x86 entry code is a reasonable base to start with. Once most of the 'mechanic' conversion is done we can do all the other changes. The conversion itself is risky enough as-is, we want to offload as much of any other risk to after the conversion is done. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/