Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756921Ab0GRSX0 (ORCPT ); Sun, 18 Jul 2010 14:23:26 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:38977 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756885Ab0GRSXZ convert rfc822-to-8bit (ORCPT ); Sun, 18 Jul 2010 14:23:25 -0400 MIME-Version: 1.0 In-Reply-To: <4C434223.8030202@redhat.com> References: <20100714154923.947138065@efficios.com> <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714203940.GC22096@Krystal> <20100714222115.GA30122@Krystal> <4C42DF9A.5090908@redhat.com> <4C434223.8030202@redhat.com> Date: Sun, 18 Jul 2010 11:22:49 -0700 Message-ID: Subject: Re: [patch 1/2] x86_64 page fault NMI-safe From: Linus Torvalds To: Avi Kivity Cc: Mathieu Desnoyers , LKML , Andrew Morton , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Steven Rostedt , Frederic Weisbecker , Thomas Gleixner , Christoph Hellwig , Li Zefan , Lai Jiangshan , Johannes Berg , Masami Hiramatsu , Arnaldo Carvalho de Melo , Tom Zanussi , KOSAKI Motohiro , Andi Kleen , "H. Peter Anvin" , Jeremy Fitzhardinge , "Frank Ch. Eigler" , Tejun Heo Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 858 Lines: 20 On Sun, Jul 18, 2010 at 11:04 AM, Avi Kivity wrote: > > Too simple - an MCE will switch to its own stack, failing the test. ?Now > that we have correctable MCEs, that's not a good idea. Ahh, true. And I think we do DEBUG traps with IST too. So we do need the explicit flag over the region. Too bad. I was hoping to handle the nested case without having to set up the percpu segment (that whole conditional swapgs thing, which is extra painful in NMI). And at that point, if you require the separate flag anyway, the %rsp range test is equivalent to the %rip range test. Linus -- 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/