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] [PATCH 0/2] Add physical CPU hotplug support

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] [PATCH 0/2] Add physical CPU hotplug support
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Thu, 24 Sep 2009 23:31:43 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Thu, 24 Sep 2009 08:35:21 -0700
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
Thread-index: Aco9LB5V1vXVHUIWQ3GdlBVPT86xPg==
Thread-topic: [PATCH 0/2] Add physical CPU hotplug support
The followed two patches add physical CPU hotplug support to xen/dom0, so that 
a physical CPU can be added to the system dynamically.

I send xen/dom0 changes together, hope it will not cause confusing.

Some background:
Two confusing terminology is logical CPU online/offline (O*L) and physical 
hotplug (or physical CPU O*L) . For example, in Linux kernel, 
CONFIG_HOTPLUG_CPU enables the logical CPU O*L to turn a logical CPU for 
schedule, while physical O*L means physical addition/removal, 
CONFIG_ACPI_HOTPLUG_CPU enables ACPI support for physical add/remove of CPUs.

The logical CPU O*L is supported in Xen hypervisor already, firstly for 
suspend/resume purpose by Kevi and extended later by Haitao. These patches are 
mainly for physical CPU O*L.

Basic idea:
The basic workflow in the patch is two step physical hotplug. After a hotplug 
event is triggered through ACPI to dom0, dom0 will notify Xen hypervisor of new 
CPU added. Xen hypervisor will mark the CPU present but still offline. An extra 
hypercall needed to online the CPU into scheduler. The two step method is 
because we try to hold the policy to OS to determine if a new added CPU will be 
used or not.

The main challenges comes from dom0, because the potential conflict between 
vcpu/pcpu for dom0. We utilize power management's processor external controller 
idea to add some hooks to dom0's ACPI code, and also make sure there will be no 
conflict between vcpu hotplug. 
We add a /sys entry under /sys/device/system/xen_pcpu to present the physical 
CPU in the system, currently this entry is only for CPU online/cpu hotplug, but 
later it maybe useful for other purpose.

Please check the patch for more information.
Any feedback is welcome.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 0/2] Add physical CPU hotplug support, Jiang, Yunhong <=