Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
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? */