Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757999Ab0GNWbR (ORCPT ); Wed, 14 Jul 2010 18:31:17 -0400 Received: from eddie.linux-mips.org ([78.24.191.182]:42098 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757108Ab0GNWbM (ORCPT ); Wed, 14 Jul 2010 18:31:12 -0400 Date: Wed, 14 Jul 2010 23:31:10 +0100 (BST) From: "Maciej W. Rozycki" 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 In-Reply-To: Message-ID: References: <20100714154923.947138065@efficios.com> <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714203940.GC22096@Krystal> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 975 Lines: 22 On Wed, 14 Jul 2010, Linus Torvalds wrote: > You just count differently. I don't count the first one (the "real" > NMI). That obviously happens. So I only count how many interrupts we > need to fake. That's my "one". That's the one that happens as a result > of the fault that we take on the iret in the emulated model. Ah, I see -- so we are on the same page after all. > (Yeah, yeah, you can call it a "one-bit counter", but I don't think > that's a counter. It's just a bit of information). Hardware has something like a strapped-high D flip-flop (NMI goes to the clock input) with an extra reset input I presume -- this dates back to 8086 when the transistor count mattered with accuracy higher than 1e6. ;) Maciej -- 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/