From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Stabellini Subject: Re: [PATCH v2 6/7] kvm,x86: RCU based table free Date: Tue, 5 Jun 2012 14:21:50 +0100 Message-ID: References: <20120604050223.4560.2874.stgit@abhimanyu.in.ibm.com> <20120604050822.4560.54662.stgit@abhimanyu.in.ibm.com> <87ehpuqam8.fsf@linux.vnet.ibm.com> <878vg1rjts.fsf@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Cc: Stefano Stabellini , "peterz@infradead.org" , "mingo@elte.hu" , "mtosatti@redhat.com" , "avi@redhat.com" , "raghukt@linux.vnet.ibm.com" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "jeremy@goop.org" , "vatsa@linux.vnet.ibm.com" , "hpa@zytor.com" , Konrad Rzeszutek Wilk To: Nikunj A Dadhania Return-path: In-Reply-To: <878vg1rjts.fsf@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, 5 Jun 2012, Nikunj A Dadhania wrote: > On Tue, 5 Jun 2012 12:58:32 +0100, Stefano Stabellini wrote: > > On Tue, 5 Jun 2012, Nikunj A Dadhania wrote: > > > On Tue, 5 Jun 2012 11:48:02 +0100, Stefano Stabellini wrote: > > > > > > > > I am also interested in introducing HAVE_RCU_TABLE_FREE on x86 for Xen. > > > > Maybe we can pull our efforts together :-) > > > > > > > > Giving a look at this patch, it doesn't look like it is introducing > > > > CONFIG_HAVE_RCU_TABLE_FREE anywhere under arch/x86. > > > > How is the user supposed to set it? > > > > > > > I am doing that in the next patch only for KVM-ParavirtTLB flush, as > > > there is a bug in this implementation that patch [7/7] fixes. > > > > > > Refer following thread for details: > > > http://mid.gmane.org/1337254086.4281.26.camel@twins > > > http://mid.gmane.org/1337273959.4281.62.camel@twins > > > > Thanks, somehow I missed the 7/7 patch. > > > > From the Xen POV, your patch is fine because we'll just select > > PARAVIRT_TLB_FLUSH on CONFIG_XEN (see appended patch for completeness). > > > Selecting ARCH_HW_WALKS_PAGE_TABLE in place of PARAVIRT_TLB_FLUSH should > suffice. We would also need to select HAVE_RCU_TABLE_FREE, but it could be a good idea, not go through PARAVIRT_TLB_FLUSH.