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-changelog

[Xen-changelog] [linux-2.6.18-xen] ia64, xencomm: support XEN_SYSCTL_cpu

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] ia64, xencomm: support XEN_SYSCTL_cpupool_op
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 06 Jun 2010 23:55:37 -0700
Delivery-date: Sun, 06 Jun 2010 23:58:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=