Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380Ab0GSHcy (ORCPT ); Mon, 19 Jul 2010 03:32:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20871 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752605Ab0GSHcx (ORCPT ); Mon, 19 Jul 2010 03:32:53 -0400 Message-ID: <4C43FF73.1070305@redhat.com> Date: Mon, 19 Jul 2010 10:32:03 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Thunderbird/3.0.5 MIME-Version: 1.0 To: Linus Torvalds 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 Subject: Re: [patch 1/2] x86_64 page fault NMI-safe 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 25 On 07/18/2010 09:22 PM, Linus Torvalds wrote: > 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). > Well, we have to do that anyway for the non-nested case. So we just do it before checking whether we're nested or not, and undo it on the popf; retf path. -- error compiling committee.c: too many arguments to function -- 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/