From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Question about the current vcpu. Date: Fri, 27 Mar 2009 22:16:46 -0700 Message-ID: <49CDB2BE.2080504@goop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: p z Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org p z wrote: > But the physical machine may be multi-core ,thus there may be two or > more vcpus running in parallel on different cores.Then which vcpu is > the current? How should I understand the current vcpu please? "current" returns the vcpu currently running on this physical cpu (ie, the one that's executing "current" itself). It will return different results for each pcpu at a given instant, and will return different values for a given pcpu over time as different vcpus are scheduled on itnb. J