From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx182.postini.com [74.125.245.182]) by kanga.kvack.org (Postfix) with SMTP id 525E36B0075 for ; Thu, 28 Jun 2012 12:03:04 -0400 (EDT) Message-ID: <4FEC7F97.5010209@redhat.com> Date: Thu, 28 Jun 2012 19:00:23 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [PATCH 08/20] mm: Optimize fullmm TLB flushing References: <20120627211540.459910855@chello.nl> <20120627212831.137126018@chello.nl> <1340838154.10063.86.camel@twins> <1340838807.10063.90.camel@twins> <1340880904.28750.13.camel@twins> <20120628131950.0afe39f0@de.ibm.com> <1340883048.28750.25.camel@twins> In-Reply-To: <1340883048.28750.25.camel@twins> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: Martin Schwidefsky , Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, Thomas Gleixner , Ingo Molnar , akpm@linux-foundation.org, Rik van Riel , Hugh Dickins , Mel Gorman , Nick Piggin , Alex Shi , "Nikunj A. Dadhania" , Konrad Rzeszutek Wilk , Benjamin Herrenschmidt , David Miller , Russell King , Catalin Marinas , Chris Metcalf , Tony Luck , Paul Mundt , Jeff Dike , Richard Weinberger , Ralf Baechle , Kyle McMartin , James Bottomley , Chris Zankel On 06/28/2012 02:30 PM, Peter Zijlstra wrote: > On Thu, 2012-06-28 at 13:19 +0200, Martin Schwidefsky wrote: > >> The cpu can create speculative TLB entries, but only if it runs in the >> mode that uses the respective mm. We have two mm's active at the same >> time, the kernel mm (init_mm) and the user mm. While the cpu runs only >> in kernel mode it is not allowed to create TLBs for the user mm. >> While running in user mode it is allowed to speculatively create TLBs. > > OK, that's neat. Note that we can do that for x86 now using the new PCID feature. Basically you get a tagged TLB, so you can switch between the kernel-only address space and the kernel+user address space quickly. It's still going to be slower than what we do now, but it might please some security people if the kernel can't accidentally access user data. -- error compiling committee.c: too many arguments to function -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org