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

[Xen-devel] dom0 vcpu set problem


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • 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;
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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


 


Rackspace

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