Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757574Ab0GNVSt (ORCPT ); Wed, 14 Jul 2010 17:18:49 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:45466 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753103Ab0GNVSs (ORCPT ); Wed, 14 Jul 2010 17:18:48 -0400 Date: Wed, 14 Jul 2010 23:18:05 +0200 From: Ingo Molnar To: Linus Torvalds Cc: Mathieu Desnoyers , Frederic Weisbecker , LKML , Andrew Morton , Peter Zijlstra , Steven Rostedt , Steven Rostedt , 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 Message-ID: <20100714211805.GA5930@elte.hu> References: <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714184642.GA9728@elte.hu> <20100714193652.GA13630@nowhere> <20100714201753.GB22096@Krystal> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -2.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 30 * Linus Torvalds wrote: > On Wed, Jul 14, 2010 at 1:17 PM, Mathieu Desnoyers > wrote: > > > > It only handles the case of a single NMI coming in. What happens in this > > scenario? > > [ two nested NMI's ] > > The _right_ thing happens. > > What do you think the hardware would have done itself? The NMI was blocked. > It wouldn't get replayed twice. If you have two NMI's happening while > another NMI is active, you will get a single NMI after the first NMI has > completed. If it ever became an issue, we could even do what softirqs do and re-execute the NMI handler. At least for things like PMU NMIs we have to handle them once they have been (re-)issued, or we'd get a stuck PMU. But in any case it should be a non-issue. 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/