WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] dom0 vcpu set problem

To: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] dom0 vcpu set problem
From: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Date: Tue, 11 May 2010 17:12:58 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Jan, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 11 May 2010 02:14:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BE92223020000780000239C@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201005110819.47801.dietmar.hahn@xxxxxxxxxxxxxx> <4BE92223020000780000239C@xxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acrw2s+81C2rp3iVSmm52KQg/lp8IAADbmfg
Thread-topic: [Xen-devel] dom0 vcpu set problem
Yes, acpi hotplug is for hvm vcpu hotplug.

To get more xenstore refer, you can access
http://wiki.xensource.com/xenwiki/XenStore?highlight=%28xenstore%29
http://wiki.xensource.com/xenwiki/XenStoreReference?highlight=%28xenstore%29

Attached is the tool to dump xenstore, with it, you can get info for dom0 vcpu 
add/remove, like:
xm vcpu-set 0 1
/local/domain/0/cpu/1/availability=offline
/local/domain/0/cpu/0/availability=online

xm vcpu-set 0 2
/local/domain/0/cpu/1/availability=online
/local/domain/0/cpu/0/availability=online

pv vcpu hotplug code is as what Jan said.

Thanks,
Jinsong

Jan Beulich wrote:
>>>> Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx> 11.05.10 08:19 >>>
>> Can anybody point me where in the code the acpi cpu hotplug gets
>> triggered to add the vcpu again to the dom0 kernel after setting the
>> xenstore! 
> 
> No, ACPI hotplug code is not involved in pv domains' vCPU adding or
> removal. Instead, the pv kernels create a xenstore watch on their
> domain's "cpu" node, reading cpu/<id>/availability when the watch
> fires. See drivers/xen/core/cpu_hotplug.c (for the forward ported
> kernels) or drivers/xen/cpu_hotplug.c (for the pv-ops ones).
> 
> Jan
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Attachment: dumpxenstore.sh
Description: dumpxenstore.sh

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>