Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 3 Oct 2002 09:49:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 3 Oct 2002 09:49:16 -0400 Received: from pc1-cwma1-5-cust51.swa.cable.ntl.com ([80.5.120.51]:28656 "EHLO irongate.swansea.linux.org.uk") by vger.kernel.org with ESMTP id ; Thu, 3 Oct 2002 09:49:15 -0400 Subject: Re: [rfc] [patch] kernel hooks From: Alan Cox To: Richard J Moore Cc: Linux Kernel Mailing List , Michael Grundy , Mikael Pettersson , suparna , vamsi@linux.ibm.com In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 03 Oct 2002 15:00:52 +0100 Message-Id: <1033653652.28022.20.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 837 Lines: 19 On Thu, 2002-10-03 at 14:32, Richard J Moore wrote: > > > You must also ensure that the code you are modifying isnt on an IRQ path > > (if it is you must do spin locks and then be very careful about cross > > cpu tlb deadlocks). Finally you have no choice but to ensure you never > > use it on the NMI path > > Why do we need a spinlock? We change one byte, we are not concered about > when exactly that takes effect, only that there are always valid > instructions in the pipeline. Because you are programming for real silicon not for the imaginary perfect processor. Read the x86 errata - 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/