aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen/interface
diff options
context:
space:
mode:
authorLiu Jinsong <jinsong.liu@intel.com>2013-01-24 07:19:47 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2013-02-19 22:02:26 -0500
commitef92e7caf9901884f19fdeb4d7a24333b33c5f37 (patch)
tree3fc55f9288c42a08fa3e8ab27b26c78bd4d34f8b /include/xen/interface
parentdcb93b96cec723783a81e8cac7df62feaf964792 (diff)
xen/acpi: ACPI memory hotplug
This patch implements real Xen acpi memory hotplug driver as module. When loaded, it replaces Xen stub driver. When an acpi memory device hotadd event occurs, it notifies OS and invokes notification callback, adding related memory device and parsing memory information, finally hypercall to xen hypervisor to add memory. Signed-off-by: Liu Jinsong <jinsong.liu@intel.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/xen/interface')
-rw-r--r--include/xen/interface/platform.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/xen/interface/platform.h b/include/xen/interface/platform.h
index 5e36932ab407..2c4fb4bb07df 100644
--- a/include/xen/interface/platform.h
+++ b/include/xen/interface/platform.h
@@ -324,10 +324,14 @@ struct xenpf_cpu_ol {
324}; 324};
325DEFINE_GUEST_HANDLE_STRUCT(xenpf_cpu_ol); 325DEFINE_GUEST_HANDLE_STRUCT(xenpf_cpu_ol);
326 326
327/* 327#define XENPF_mem_hotadd 59
328 * CMD 58 and 59 are reserved for cpu hotadd and memory hotadd, 328struct xenpf_mem_hotadd {
329 * which are already occupied at Xen hypervisor side. 329 uint64_t spfn;
330 */ 330 uint64_t epfn;
331 uint32_t pxm;
332 uint32_t flags;
333};
334
331#define XENPF_core_parking 60 335#define XENPF_core_parking 60
332struct xenpf_core_parking { 336struct xenpf_core_parking {
333 /* IN variables */ 337 /* IN variables */
@@ -357,6 +361,7 @@ struct xen_platform_op {
357 struct xenpf_set_processor_pminfo set_pminfo; 361 struct xenpf_set_processor_pminfo set_pminfo;
358 struct xenpf_pcpuinfo pcpu_info; 362 struct xenpf_pcpuinfo pcpu_info;
359 struct xenpf_cpu_ol cpu_ol; 363 struct xenpf_cpu_ol cpu_ol;
364 struct xenpf_mem_hotadd mem_add;
360 struct xenpf_core_parking core_parking; 365 struct xenpf_core_parking core_parking;
361 uint8_t pad[128]; 366 uint8_t pad[128];
362 } u; 367 } u;