|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] ia64, xencomm: support XEN_SYSCTL_cpu
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1275890231 -3600
# Node ID b7eb9756e5225835e02fd2f5f10f65439bd9ff08
# Parent 948c933f8839f77f436f3df5548ed2101b887a55
ia64, xencomm: support XEN_SYSCTL_cpupool_op
Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
---
arch/ia64/xen/xcom_privcmd.c | 12 ++++++++++++
1 files changed, 12 insertions(+)
diff -r 948c933f8839 -r b7eb9756e522 arch/ia64/xen/xcom_privcmd.c
--- a/arch/ia64/xen/xcom_privcmd.c Thu May 06 15:52:48 2010 +0100
+++ b/arch/ia64/xen/xcom_privcmd.c Mon Jun 07 06:57:11 2010 +0100
@@ -229,6 +229,18 @@ xencomm_privcmd_sysctl(privcmd_hypercall
return ret;
}
+ case XEN_SYSCTL_cpupool_op:
+ desc = xencomm_map(
+ xen_guest_handle(kern_op.u.cpupool_op.cpumap.bitmap),
+ ROUND_DIV(kern_op.u.cpupool_op.cpumap.nr_cpus, 8));
+ if (xen_guest_handle(kern_op.u.cpupool_op.cpumap.bitmap) !=
+ NULL && kern_op.u.cpupool_op.cpumap.nr_cpus > 0 &&
+ desc == NULL)
+ return -ENOMEM;
+ set_xen_guest_handle(kern_op.u.cpupool_op.cpumap.bitmap,
+ (void *)desc);
+ break;
+
ret = xencomm_arch_hypercall_sysctl(op_desc);
/* FIXME: should we restore the handles? */
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [linux-2.6.18-xen] ia64, xencomm: support XEN_SYSCTL_cpupool_op,
Xen patchbot-linux-2.6.18-xen <=
|
|
|
|
|