From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bei Guan Subject: How does the Xen kernel change the vcpu number of a domain? Date: Fri, 13 Jun 2014 15:19:08 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4866593800592094484==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============4866593800592094484== Content-Type: multipart/alternative; boundary=001a1136b1f444d50104fbb27ebe --001a1136b1f444d50104fbb27ebe Content-Type: text/plain; charset=UTF-8 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 --001a1136b1f444d50104fbb27ebe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All,

I try to figure out = that how the command "xl vcpu-set" works. I find out that the com= mand "xl vcpu-set" calls the method libxl__set_vcpuonline_xenstor= e() 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 increas= e/decrease according to the vcpu state in the Xenstore? =C2=A0How can I fin= d the method that really does the work?

Any reply is ap= preciated. Thank you all very much.

--
Best Regards,
Bei Guan
--001a1136b1f444d50104fbb27ebe-- --===============4866593800592094484== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4866593800592094484==--