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] [xen-unstable] [IA64] support XEN_DOMCTL_mem_sharing_op

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] support XEN_DOMCTL_mem_sharing_op
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 08 Jan 2010 04:00:21 -0800
Delivery-date: Fri, 08 Jan 2010 04:00:49 -0800
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 1262950664 0
# Node ID dc8fb5dc629dc9f8a657480eb8d42b1018d916d3
# Parent  b600a7e8acfef3820b78daa71c6b31f15c36dc36
[IA64] support XEN_DOMCTL_mem_sharing_op

Because memory sharing is not implemented on ia64, only
XEN_DOMCTL_MEM_SHARING_OP_CONTROL is supported.

Signed-off-by: KUWAMURA Shin'ya <kuwa@xxxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/dom0_ops.c |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+)

diff -r b600a7e8acfe -r dc8fb5dc629d xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Fri Jan 08 11:33:37 2010 +0000
+++ b/xen/arch/ia64/xen/dom0_ops.c      Fri Jan 08 11:37:44 2010 +0000
@@ -683,6 +683,35 @@ long arch_do_domctl(xen_domctl_t *op, XE
     }
     break;
 
+    case XEN_DOMCTL_mem_sharing_op:
+    {
+        xen_domctl_mem_sharing_op_t *mec = &op->u.mem_sharing_op;
+        struct domain *d = rcu_lock_domain_by_id(op->domain);
+
+        ret = -ESRCH;
+        if (d == NULL)
+            break;
+
+        switch(mec->op)
+        {
+            case XEN_DOMCTL_MEM_SHARING_OP_CONTROL:
+            {
+                if (mec->u.enable) {
+                    ret = -EINVAL; /* not implemented */
+                    break;
+                }
+                ret = 0;
+            }
+            break;
+
+            default:
+                ret = -ENOSYS;
+        }
+        
+        rcu_unlock_domain(d);
+    }
+    break;
+
     default:
         printk("arch_do_domctl: unrecognized domctl: %d!!!\n",op->cmd);
         ret = -ENOSYS;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] support XEN_DOMCTL_mem_sharing_op, Xen patchbot-unstable <=