Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756751Ab2FFPtE (ORCPT ); Wed, 6 Jun 2012 11:49:04 -0400 Received: from casper.infradead.org ([85.118.1.10]:39212 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756293Ab2FFPtA convert rfc822-to-8bit (ORCPT ); Wed, 6 Jun 2012 11:49:00 -0400 Message-ID: <1338997720.2749.148.camel@twins> Subject: Re: [PATCH 0/6] x86/cpu hotplug: Wake up offline CPU via mwait or nmi From: Peter Zijlstra To: Arjan van de Ven Cc: paulmck@linux.vnet.ibm.com, Thomas Gleixner , "Luck, Tony" , "Yu, Fenghua" , Rusty Russell , Ingo Molnar , H Peter Anvin , "Siddha, Suresh B" , "Mallick, Asit K" , linux-kernel , x86 , linux-pm , "Srivatsa S. Bhat" Date: Wed, 06 Jun 2012 17:48:40 +0200 In-Reply-To: <4FCF760A.7030501@linux.intel.com> References: <3E5A0FA7E9CA944F9D5414FEC6C7122007728081@ORSMSX105.amr.corp.intel.com> <1338913190.2749.10.camel@twins> <3908561D78D1C84285E8C5FCA982C28F19300965@ORSMSX104.amr.corp.intel.com> <1338918625.2749.29.camel@twins> <1338925756.2749.36.camel@twins> <1338931856.2749.57.camel@twins> <20120605221240.GW2388@linux.vnet.ibm.com> <1338972223.2749.79.camel@twins> <20120606144127.GF19601@linux.vnet.ibm.com> <4FCF760A.7030501@linux.intel.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 859 Lines: 16 On Wed, 2012-06-06 at 08:23 -0700, Arjan van de Ven wrote: > btw TLB invalidation I think is a red herring in this discussion > (other than "global PTEs" kind of kernel pte changes); > at least on x86 this is not happening for a long time; if a CPU is > really idle (which means the CPU internally flushes the tlbs anyway), > Linux also switches to the kernel PTE set so there's no need for a flush > later on. This is about isolation, not idle. If you share a mm across your isolation barrier you get TLB invalidates, its unavoidable. The solution is not sharing the mm -- which is a perfectly usable solution. -- 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/