Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751204AbVKWQKb (ORCPT ); Wed, 23 Nov 2005 11:10:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751205AbVKWQKb (ORCPT ); Wed, 23 Nov 2005 11:10:31 -0500 Received: from clock-tower.bc.nu ([81.2.110.250]:48546 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S1751204AbVKWQKa (ORCPT ); Wed, 23 Nov 2005 11:10:30 -0500 Subject: Re: [patch] SMP alternatives From: Alan Cox To: Andi Kleen Cc: Gerd Knorr , Linus Torvalds , Dave Jones , Zachary Amsden , Pavel Machek , Andrew Morton , Linux Kernel Mailing List , "H. Peter Anvin" , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar In-Reply-To: References: <200511100032.jAA0WgUq027712@zach-dev.vmware.com> <20051111103605.GC27805@elf.ucw.cz> <4374F2D5.7010106@vmware.com> <4374FB89.6000304@vmware.com> <20051113074241.GA29796@redhat.com> <4378A7F3.9070704@suse.de> <4379ECC1.20005@suse.de> <437A0649.7010702@suse.de> <437B5A83.8090808@suse.de> <438359D7.7090308@suse.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 23 Nov 2005 16:42:13 +0000 Message-Id: <1132764133.7268.51.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 778 Lines: 22 On Mer, 2005-11-23 at 12:17 -0700, Andi Kleen wrote: > > + /* Paranoia */ > > + asm volatile ("jmp 1f\n1:"); > > + mb(); > > That would be totally obsolete 386 era paranoia. If anything then use > a CLFLUSH (but not available on all x86s) If you are patching code another x86 CPU is running you must halt the other processors and ensure it executes a serialzing instruction before it enters any patched code. How many kilobytes of tables do you add to the kernel to do this pointless stunt btw ? Alan "CPU errata are fun" Cox - 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/