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

[Xen-devel] [PATCH] HVM vcpu add/remove


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
  • Date: Wed, 9 Dec 2009 17:26:30 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 09 Dec 2009 01:27:43 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acp4sbDZngaRsrGvQ92S4YNJ60tLtQ==
  • Thread-topic: [PATCH] HVM vcpu add/remove

Hi, all

These patches are HVM vcpu add/remove patches.
With these patches, user can run-time add/remove HVM vcpus by 'cpu_set 
vcpu-number online/offline' at qemu monitor interface.
At HVM booting, HVM maxvcpus/vcpu_avail can be set at config file, with 
'maxvcpus=x vcpus=y'

ras_xen_py_1.patch:
- currently xend has parse 'vcpus' to qemu, we need also parse 'vcpu_avail' to 
qemu.

ras_xen_acpi_2.patch:
In order to support HVM vcpu add/remove, we need set dsdt and madt 
infrastructure:
- at dsdt, define ACPI objects and control methods (like _MAT, _EJ0, _STA) for 
processors;
- at dsdt, define control method _L02 corresponding to SCI interrupts, build 
scan and notify method which trigger HVM acpi driver to add/remove cpu;
- at madt, re-order madt subitems sequence, in order to make checksum locating 
more creditable (will not be influenced by madt change in the future). What is 
more, the re-order match normal madt sequence habit;

ras_xen_hvminfo_3.patch
- currently firmware has got 'vcpus' from xend, this patch add parse 
'vcpu_avail' to firmware;
- setup madt 'lapic' subitems of processors accoring to vcpu_avail;

ras_qemu_cpuset_1.patch
- setup gpe ioread/iowrite at qmeu;
- setup vcpu add/remove user interface through monitor;
- setup SCI logic;

Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>
_______________________________________________
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®.