All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: p z <zpengxen@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: Question about the current vcpu.
Date: Fri, 27 Mar 2009 22:16:46 -0700	[thread overview]
Message-ID: <49CDB2BE.2080504@goop.org> (raw)
In-Reply-To: <fce3faea0903271837s5efea0bao2dd2be93142e0ae@mail.gmail.com>

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

  reply	other threads:[~2009-03-28  5:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-28  1:37 Question about the current vcpu p z
2009-03-28  5:16 ` Jeremy Fitzhardinge [this message]
2009-03-30  8:22 ` Zhiyuan Shao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49CDB2BE.2080504@goop.org \
    --to=jeremy@goop.org \
    --cc=xen-devel@lists.xensource.com \
    --cc=zpengxen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.