* Question about the current vcpu.
@ 2009-03-28 1:37 p z
2009-03-28 5:16 ` Jeremy Fitzhardinge
2009-03-30 8:22 ` Zhiyuan Shao
0 siblings, 2 replies; 3+ messages in thread
From: p z @ 2009-03-28 1:37 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 318 bytes --]
Hi all,
There is a macro current which may mean to get the current vcpu
information.
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?
Thanks.
Cheer,
--
zp
[-- Attachment #1.2: Type: text/html, Size: 379 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about the current vcpu.
2009-03-28 1:37 Question about the current vcpu p z
@ 2009-03-28 5:16 ` Jeremy Fitzhardinge
2009-03-30 8:22 ` Zhiyuan Shao
1 sibling, 0 replies; 3+ messages in thread
From: Jeremy Fitzhardinge @ 2009-03-28 5:16 UTC (permalink / raw)
To: p z; +Cc: xen-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Question about the current vcpu.
2009-03-28 1:37 Question about the current vcpu p z
2009-03-28 5:16 ` Jeremy Fitzhardinge
@ 2009-03-30 8:22 ` Zhiyuan Shao
1 sibling, 0 replies; 3+ messages in thread
From: Zhiyuan Shao @ 2009-03-30 8:22 UTC (permalink / raw)
To: p z, xen-devel@lists.xensource.com
[-- Attachment #1.1: Type: text/plain, Size: 812 bytes --]
Hi,
Actually, defined by Credit scheduler, each PCPU (physical CPU, if you run Xen on a multi-core machine, you get multiple PCPUs) has its own runqueue, and its own current vcpu as well.
The PCPUs of the system makes their own scheduling decisions independently.
Best,
2009-03-30
Zhiyuan Shao
发件人: p z
发送时间: 2009-03-28 09:38:16
收件人: xen-devel@lists.xensource.com
抄送:
主题: [Xen-devel] Question about the current vcpu.
Hi all,
There is a macro current which may mean to get the current vcpu information.
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?
Thanks.
Cheer,
--
zp
[-- Attachment #1.2: Type: text/html, Size: 3577 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-30 8:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 1:37 Question about the current vcpu p z
2009-03-28 5:16 ` Jeremy Fitzhardinge
2009-03-30 8:22 ` Zhiyuan Shao
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.