From: Keir Fraser Date: Mon, 7 Jun 2010 05:57:11 +0000 (+0100) Subject: ia64, xencomm: support XEN_SYSCTL_cpupool_op X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a95b991bd0a298f612944c6970cc7cdefd792e83;p=legacy%2Flinux-2.6.18-xen.git ia64, xencomm: support XEN_SYSCTL_cpupool_op Signed-off-by: KUWAMURA Shin'ya --- diff --git a/arch/ia64/xen/xcom_privcmd.c b/arch/ia64/xen/xcom_privcmd.c index f9371a0d..90fdfa91 100644 --- a/arch/ia64/xen/xcom_privcmd.c +++ b/arch/ia64/xen/xcom_privcmd.c @@ -229,6 +229,18 @@ xencomm_privcmd_sysctl(privcmd_hypercall_t *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? */