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] [XEN][POWERPC] Xen shadow ops, mostly ske

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEN][POWERPC] Xen shadow ops, mostly skeleton code
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Aug 2006 23:40:21 +0000
Delivery-date: Wed, 30 Aug 2006 16:42:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 883e3dc479263c4310be5f7f480468a9a9fbda4c
# Parent  75b4982b82fee47dc4d8f61c444d97a692d782ec
[XEN][POWERPC] Xen shadow ops, mostly skeleton code
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/Makefile        |    1 +
 xen/arch/powerpc/dom0_ops.c      |   15 +++++++++++++++
 xen/include/asm-powerpc/shadow.h |    4 ++++
 3 files changed, 20 insertions(+)

diff -r 75b4982b82fe -r 883e3dc47926 xen/arch/powerpc/Makefile
--- a/xen/arch/powerpc/Makefile Tue Aug 29 14:36:16 2006 -0500
+++ b/xen/arch/powerpc/Makefile Sun Aug 20 13:28:45 2006 -0400
@@ -32,6 +32,7 @@ obj-y += physdev.o
 obj-y += physdev.o
 obj-y += rtas.o
 obj-y += setup.o
+obj-y += shadow.o
 obj-y += smp.o
 obj-y += time.o
 obj-y += usercopy.o
diff -r 75b4982b82fe -r 883e3dc47926 xen/arch/powerpc/dom0_ops.c
--- a/xen/arch/powerpc/dom0_ops.c       Tue Aug 29 14:36:16 2006 -0500
+++ b/xen/arch/powerpc/dom0_ops.c       Sun Aug 20 13:28:45 2006 -0400
@@ -23,6 +23,7 @@
 #include <xen/lib.h>
 #include <xen/sched.h>
 #include <xen/guest_access.h>
+#include <xen/shadow.h>
 #include <public/xen.h>
 #include <public/domctl.h>
 #include <public/sysctl.h>
@@ -107,8 +108,22 @@ long arch_do_sysctl(struct xen_sysctl *s
             ret = -EFAULT;
     }
     break;
+    case DOM0_SHADOW_CONTROL:
+    {
+        struct domain *d;
+        ret = -ESRCH;
+        d = find_domain_by_id(op->u.shadow_control.domain);
+        if ( d != NULL )
+        {
+            ret = shadow_control_op(d, &op->u.shadow_control, u_dom0_op);
+            put_domain(d);
+            copy_to_guest(u_dom0_op, op, 1);
+        } 
+    }
+    break;
 
     default:
+        printk("%s: unsupported op: 0x%x\n", __func__, (op->cmd));
         ret = -ENOSYS;
         break;
     }
diff -r 75b4982b82fe -r 883e3dc47926 xen/include/asm-powerpc/shadow.h
--- a/xen/include/asm-powerpc/shadow.h  Tue Aug 29 14:36:16 2006 -0500
+++ b/xen/include/asm-powerpc/shadow.h  Sun Aug 20 13:28:45 2006 -0400
@@ -56,4 +56,8 @@ static inline void mark_dirty(struct dom
     return;
 }
 #define gnttab_mark_dirty(d, f) mark_dirty((d), (f))
+
+extern int shadow_control_op(struct domain *d, 
+                             dom0_shadow_control_t *sc,
+                             XEN_GUEST_HANDLE(dom0_op_t) u_dom0_op);
 #endif

_______________________________________________
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] [XEN][POWERPC] Xen shadow ops, mostly skeleton code, Xen patchbot-unstable <=