[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] ia64, xencomm: support XEN_SYSCTL_cpupool_op
Hi, This patch enables ia64 to support XEN_SYSCTL_cpupool_op. Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx> -- KUWAMURA Shin'ya # HG changeset patch # User KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx> # Date 1274754309 -32400 # Node ID fc69fdf7e36cceb052c4280de50c75390130ebf5 # Parent c73253381236c35a5baeb8989554ed69f02b83ac ia64, xencomm: support XEN_SYSCTL_cpupool_op Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx> diff -r c73253381236 -r fc69fdf7e36c arch/ia64/xen/xcom_privcmd.c --- a/arch/ia64/xen/xcom_privcmd.c Tue May 25 11:20:58 2010 +0900 +++ b/arch/ia64/xen/xcom_privcmd.c Tue May 25 11:25:09 2010 +0900 @@ -281,6 +281,18 @@ xencomm_privcmd_sysctl(privcmd_hypercall (void *)desc2); break; } + + 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; default: printk("%s: unknown sysctl cmd %d\n", __func__, kern_op.cmd); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |