From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752709AbaKQUEL (ORCPT ); Mon, 17 Nov 2014 15:04:11 -0500 Received: from mail.skyhub.de ([78.46.96.112]:52794 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791AbaKQUEJ (ORCPT ); Mon, 17 Nov 2014 15:04:09 -0500 Date: Mon, 17 Nov 2014 21:03:54 +0100 From: Borislav Petkov To: Andy Lutomirski Cc: "Luck, Tony" , Andi Kleen , "linux-kernel@vger.kernel.org" , X86 ML , Peter Zijlstra , Oleg Nesterov Subject: Re: [RFC PATCH] x86, entry: Switch stacks on a paranoid entry from userspace Message-ID: <20141117200354.GB25157@pd.tnic> References: <3908561D78D1C84285E8C5FCA982C28F3292A157@ORSMSX114.amr.corp.intel.com> <20141112103011.GA16807@pd.tnic> <20141112162225.GF16807@pd.tnic> <20141113180436.GG14070@pd.tnic> <3908561D78D1C84285E8C5FCA982C28F3293BEAE@ORSMSX114.amr.corp.intel.com> <20141117185030.GA25157@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 On Mon, Nov 17, 2014 at 11:57:22AM -0800, Andy Lutomirski wrote: > Would it be worth making a decision on task_work_add vs. stack > switching first? Probably a prudent thing to do in order to save unnecessary cycles :-) > Stack switching pros: all this lockless allocation stuff is completely > unnecessary, and it's plausible that the stack switching code will be > added anyway. Yes. However, I'd like to be very sure this thing doesn't introduce any regressions to the MCA code. So even if Tony's testing passes, I'd like to be very conservative here and stress it more than usual. Because once this thing hits upstream and stuff starts breaking, it'll be a serious PITA reverting it. I hope you can understand my concerns. Btw, which branch has your latest version - I'd like to take a look at it in detail. > task_work_add pros: conceptually simpler mce.c diff. Right, that's the safe path. Thanks. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --