Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932176AbVKWSqs (ORCPT ); Wed, 23 Nov 2005 13:46:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932173AbVKWSqs (ORCPT ); Wed, 23 Nov 2005 13:46:48 -0500 Received: from cantor2.suse.de ([195.135.220.15]:15500 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S932176AbVKWSqr (ORCPT ); Wed, 23 Nov 2005 13:46:47 -0500 Date: Wed, 23 Nov 2005 19:46:37 +0100 From: Andi Kleen To: Linus Torvalds Cc: "H. Peter Anvin" , Alan Cox , Andi Kleen , Gerd Knorr , Dave Jones , Zachary Amsden , Pavel Machek , Andrew Morton , Linux Kernel Mailing List , Zwane Mwaikambo , Pratap Subrahmanyam , Christopher Li , "Eric W. Biederman" , Ingo Molnar Subject: Re: [patch] SMP alternatives Message-ID: <20051123184636.GN20775@brahms.suse.de> References: <437A0649.7010702@suse.de> <437B5A83.8090808@suse.de> <438359D7.7090308@suse.de> <1132764133.7268.51.camel@localhost.localdomain> <20051123163906.GF20775@brahms.suse.de> <1132766489.7268.71.camel@localhost.localdomain> <4384AECC.1030403@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1208 Lines: 31 On Wed, Nov 23, 2005 at 10:42:40AM -0800, Linus Torvalds wrote: > > > On Wed, 23 Nov 2005, H. Peter Anvin wrote: > > > > Linus Torvalds wrote: > > > What I suggested to Intel at the Developer Days is to have a MSR (or, better > > > yet, a bit in the page table pointer %cr0) that disables "lock" in _user_ > > > space. Ie a lock would be a no-op when in CPL3, and only with certain > > > processes. > > > > You mean %cr3, right? > > Yes. > > It _should_ be fairly easy to do something like that - just a simple > global flag that gets set and makes CPL3 ignore lock prefixes. Even timing > doesn't matter - it it takes a hundred cycles for the setting to take > effect, we don't care, since you can't write %cr3 from user space anyway, > and it will certainly take a hundred cycles (and a few serializing > instructions) until we get to CPL3. Another bit for ring 0 would be actually useful too. Then the patching patch here wouldn't be needed. -Andi - 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/