WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] ia64, xencomm: support XEN_SYSCTL_cpupool_op

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] ia64, xencomm: support XEN_SYSCTL_cpupool_op
From: "KUWAMURA Shin'ya" <kuwa@xxxxxxxxxxxxxx>
Date: Fri, 04 Jun 2010 18:10:44 +0900 (JST)
Delivery-date: Fri, 04 Jun 2010 02:14:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] ia64, xencomm: support XEN_SYSCTL_cpupool_op, KUWAMURA Shin'ya <=