From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx117.postini.com [74.125.245.117]) by kanga.kvack.org (Postfix) with SMTP id 3EFFA6B002C for ; Thu, 9 Feb 2012 11:05:53 -0500 (EST) Message-ID: <4F33EEB3.4080807@redhat.com> Date: Thu, 09 Feb 2012 18:05:07 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [v7 0/8] Reduce cross CPU IPI interference References: <20120201201336.GI2382@linux.vnet.ibm.com> <4F2A58A1.90800@redhat.com> <20120202153437.GD2518@linux.vnet.ibm.com> <4F2AB66C.2030309@redhat.com> <20120202170134.GM2518@linux.vnet.ibm.com> <4F2AC69B.7000704@redhat.com> <20120202175155.GV2518@linux.vnet.ibm.com> <4F2E7311.8060808@redhat.com> <20120205165927.GH2467@linux.vnet.ibm.com> <20120209152155.GA22552@somewhere.redhat.com> In-Reply-To: <20120209152155.GA22552@somewhere.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Frederic Weisbecker Cc: "Paul E. McKenney" , Christoph Lameter , Peter Zijlstra , Gilad Ben-Yossef , linux-kernel@vger.kernel.org, Chris Metcalf , linux-mm@kvack.org, Pekka Enberg , Matt Mackall , Sasha Levin , Rik van Riel , Andi Kleen , Mel Gorman , Andrew Morton , Alexander Viro , Michal Nazarewicz , Kosaki Motohiro , Milton Miller On 02/09/2012 05:22 PM, Frederic Weisbecker wrote: > > > > > > Looks like there are new rcu_user_enter() and rcu_user_exit() APIs which > > > we can use. Hopefully they subsume rcu_virt_note_context_switch() so we > > > only need one set of APIs. > > > > Now that you mention it, that is a good goal. However, it requires > > coordination with Frederic's code as well, so some investigation > > is required. Bad things happen if you tell RCU you are idle when you > > really are not and vice versa! > > > > Thanx, Paul > > > > Right. Avi I need to know more about what you need. rcu_virt_note_context_switch() > notes a quiescent state while rcu_user_enter() shuts down RCU (it's in fact the same > thing than rcu_idle_enter() minus the is_idle_cpu() checks). I don't know enough about RCU to say if it's okay or not (I typically peek at the quick quiz answers). However, switching to guest mode is very similar to exiting to user mode: we're guaranteed not to be in an rcu critical section, and to remain so until the guest exits back to us. What guarantees does rcu_user_enter() provide? With luck guest entry satisifies them all. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org