[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Question about the current vcpu.



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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.