From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH RFC V9 0/19] Paravirtualized ticket spinlocks Date: Thu, 11 Jul 2013 13:11:04 +0300 Message-ID: <20130711101104.GF8575@redhat.com> References: <20130626113744.GA6300@hawk.usersys.redhat.com> <20130626125240.GY18508@redhat.com> <51CAEF45.3010203@linux.vnet.ibm.com> <20130626161130.GB18152@redhat.com> <51CB2AD9.5060508@linux.vnet.ibm.com> <51DBD3C2.2040807@linux.vnet.ibm.com> <20130710103325.GP24941@redhat.com> <51DE771F.7070805@linux.vnet.ibm.com> <20130711094833.GC8575@redhat.com> <51DE849E.4020405@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <51DE849E.4020405@linux.vnet.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Raghavendra K T Cc: jeremy@goop.org, gregkh@suse.de, kvm@vger.kernel.org, linux-doc@vger.kernel.org, peterz@infradead.org, riel@redhat.com, virtualization@lists.linux-foundation.org, andi@firstfloor.org, hpa@zytor.com, stefano.stabellini@eu.citrix.com, xen-devel@lists.xensource.com, x86@kernel.org, mingo@redhat.com, habanero@linux.vnet.ibm.com, Andrew Jones , konrad.wilk@oracle.com, ouyang@cs.pitt.edu, avi.kivity@gmail.com, tglx@linutronix.de, chegu_vinod@hp.com, linux-kernel@vger.kernel.org, srivatsa.vaddagiri@gmail.com, attilio.rao@citrix.com, pbonzini@redhat.com, torvalds@linux-foundation.org List-Id: xen-devel@lists.xenproject.org On Thu, Jul 11, 2013 at 03:40:38PM +0530, Raghavendra K T wrote: > >>>>Gleb, > >>>>Can you elaborate little more on what you have in mind regarding per > >>>>VM ple_window. (maintaining part of it as a per vm variable is clear > >>>>to > >>>> me), but is it that we have to load that every time of guest entry? > >>>> > >>>Only when it changes, shouldn't be to often no? > >> > >>Ok. Thinking how to do. read the register and writeback if there need > >>to be a change during guest entry? > >> > >Why not do it like in the patch you've linked? When value changes write it > >to VMCS of the current vcpu. > > > > Yes. can be done. So the running vcpu's ple_window gets updated only > after next pl-exit. right? I am not sure what you mean. You cannot change vcpu's ple_window while vcpu is in a guest mode. -- Gleb.