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

[Xen-devel] How does the Xen kernel change the vcpu number of a domain?


  • To: xen-devel <xen-devel@xxxxxxxxxxxxx>
  • From: Bei Guan <gbtju85@xxxxxxxxx>
  • Date: Fri, 13 Jun 2014 15:19:08 +0800
  • Delivery-date: Fri, 13 Jun 2014 07:19:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Hi All,

I try to figure out that how the command "xl vcpu-set" works. I find out that the command "xl vcpu-set" calls the method libxl__set_vcpuonline_xenstore() to set the state of the vcpu in the Xenstore path /local/domain_id/cpu/vcpu_id/availability. The value of the key "availability" is set to "online" while the the vcpu number will increase. When the key is set to "offline" the vcpu number will decrease.

What I want to know is how does the vcpu number increase/decrease according to the vcpu state in the Xenstore? ÂHow can I find the method that really does the work?

Any reply is appreciated. Thank you all very much.

--
Best Regards,
Bei Guan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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