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

[Xen-devel] dom0 vcpu set problem

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] dom0 vcpu set problem
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
Date: Tue, 11 May 2010 08:19:47 +0200
Delivery-date: Mon, 10 May 2010 23:20:46 -0700
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=dietmar.hahn@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1273558905; x=1305094905; h=from:to:subject:date:mime-version: content-transfer-encoding:message-id; z=From:=20Dietmar=20Hahn=20<dietmar.hahn@xxxxxxxxxxxxxx> |To:=20"xen-devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel@lists .xensource.com>|Subject:=20dom0=20vcpu=20set=20problem |Date:=20Tue,=2011=20May=202010=2008:19:47=20+0200 |MIME-Version:=201.0|Content-Transfer-Encoding:=207bit |Message-Id:=20<201005110819.47801.dietmar.hahn@xxxxxxxxx u.com>; bh=Fdem6Je1v9g88Ur0c2qCafwZqka+MBHROfbIcc/4Jws=; b=Fm+P4kNKTTZ/L3zl1ehHHpylz72vOo8+7zje9mb3lhDKIgcid6cDIhmO RytDI5AVx+jsErFKQ5elnp7TdCThA0w4Y5LM4a7jqTXH5116h6FwkmsWR i01jJ9xksdjUhAwBNRhH3WZa9ZNHHGOev2RzUyZyoIYkc+/yaZaJcjIPo 3j36VFWhjyVRU5SSiz2flLQbJYR0fqyaZ2y53M8ceC87M/XwksZOuEmHz JCcV5GofEJsuFKrE9qMY4pF0v27CF;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:From:To:Subject:Date:User-Agent: MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id; b=nw5xvcT1F0bwMm6M8Gcs1+efBR9WF83THQusyh6E1EHsfSbf1/azsON2 veyJhp2tKSxzu8whFcFjQ8xoynJ2Iqu6hNzjJbd9MbAq79iQKd0cg3DiG OKJX5XGd4aNNq9FRWQ1jIRoN9PaoFeGWLQStu5P4exvfBu/ZuhKuq7a0U 3Hz2E8eEeF+GWDyhuKf1jszpNz0Y8ZVYm/2skHGMklAQkbBcB7Kb/RRK+ zpCnsXNhH1pWAMkNAdaxERSQz3bvd;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.3 (Linux/2.6.31.13-xen-hahn; KDE/4.4.3; x86_64; ; )
Hi list,

I have installed latest xen-4.0-testing.hg and have a problem with setting
number of vcpus in dom0.
On boot all phys cpus are used in dom0
# xm vcpu-list
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
Domain-0                             0     0     0   r--      31.3 any cpu
Domain-0                             0     1     1   -b-      15.7 any cpu
# xm vcpu-set 0 1
# xm vcpu-list
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
Domain-0                             0     0     0   r--      32.1 any cpu
Domain-0                             0     1     -   --p      16.4 any cpu
And setting back to 2 vcpus:
# xm vcpu-set 0 2
# xm vcpu-list
Name                                ID  VCPU   CPU State   Time(s) CPU Affinity
Domain-0                             0     0     0   r--      32.1 any cpu
Domain-0                             0     1     -   --p      16.4 any cpu

But in xenstore I can see:
tool = ""
 xenstored = ""
vm = ""
 00000000-0000-0000-0000-000000000000 = ""
  on_xend_stop = "ignore"
  shadow_memory = "0"
  uuid = "00000000-0000-0000-0000-000000000000"
  on_reboot = "restart"
  image = "(linux (kernel ) (superpages 0) (nomigrate 0) (tsc_mode 0))"
   ostype = "linux"
   kernel = ""
   cmdline = ""
   ramdisk = ""
  on_poweroff = "destroy"
  bootloader_args = ""
  on_xend_start = "ignore"
  on_crash = "restart"
  xend = ""
   restart_count = "0"
  vcpus = "2"
  vcpu_avail = "3"
  bootloader = ""
  name = "Domain-0"
local = ""
 domain = ""
  0 = ""
   vm = "/vm/00000000-0000-0000-0000-000000000000"
   device = ""
   control = ""
    platform-feature-multiprocessor-suspend = "1"
   error = ""
   memory = ""
    target = "3639236"
   guest = ""
   hvmpv = ""
   data = ""
   cpu = ""
    1 = ""
     availability = "online"
    0 = ""
     availability = "online"
   description = ""
   console = ""
    limit = "1048576"
    type = "xenconsoled"
   domid = "0"
   name = "Domain-0"

And "xm log" says
[2010-05-11 07:32:31 5406] INFO (XendDomainInfo:1987) Set VCPU count on domain 
Domain-0 to 2
 
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!
Thanks!

Dietmar.


# xm info
host                   : amur
release                : 2.6.31.13-xen-hahn
version                : #3 SMP Fri May 7 09:32:24 CEST 2010
machine                : x86_64
nr_cpus                : 2
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 3166
hw_caps                : 
bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
virt_caps              : hvm
total_memory           : 3735
free_memory            : 131
node_to_cpu            : node0:0-1
node_to_memory         : node0:131
node_to_dma32_mem      : node0:65
max_node_id            : 0
xen_major              : 4
xen_minor              : 0
xen_extra              : .1-rc1-pre
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 
hvm-3.0-x86_32p hvm-3.0-x86_64 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Fri Apr 23 08:45:16 2010 +0100 21122:7d1d4abd8b44
xen_commandline        : iommu=off loglvl=all guest_loglvl=all console=vga
cc_compiler            : gcc version 4.4.1 [gcc-4_4-branch revision 150839] 
(SUSE Linux)
cc_compile_by          : hahn
cc_compile_domain      : mch.fsc.net
cc_compile_date        : Mon Apr 26 10:29:16 CEST 2010
xend_config_format     : 4


-- 
Company details: http://ts.fujitsu.com/imprint.html

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

<Prev in Thread] Current Thread [Next in Thread>