From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Paul E. McKenney" Subject: Re: RCU treating guest mode just like it does user-mode execution Date: Wed, 17 Aug 2011 17:44:59 -0700 Message-ID: <20110818004459.GQ2419@linux.vnet.ibm.com> References: <20110817204327.GA10633@linux.vnet.ibm.com> <20110817215015.GA6423@redhat.com> <20110817220520.GN2419@linux.vnet.ibm.com> <20110817235529.GA8163@redhat.com> <20110818002513.GP2419@linux.vnet.ibm.com> <4E4C5CBE.5040102@redhat.com> Reply-To: paulmck@linux.vnet.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Gleb Natapov , linux-kernel@vger.kernel.org, mtosatti@redhat.com, kvm@vger.kernel.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4E4C5CBE.5040102@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, Aug 17, 2011 at 05:28:46PM -0700, Avi Kivity wrote: > On 08/17/2011 05:25 PM, Paul E. McKenney wrote: > >> > > >> Wouldn't scheduling-clock interrupt kick vcpu out of a guest mode much > >> earlier then 30 seconds? > > > >The scheduling-clock interrupt would happen, but I do not know whether > >or not it would kick the vcpu out of guest mode in such a way that > >would result in RCU thinking that the CPU has passed through a quiescent > >state. > > > > The result can only be one of > > reenter guest (and rcu_virt_note_context_switch) > schedule() > exit to userspace Very good, thank you both for bearing with me on this! Thanx, Paul