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-ppc-devel

[XenPPC] [xenppc-unstable] [POWEPRC] missing shadow skeleton

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [POWEPRC] missing shadow skeleton
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 21 Aug 2006 11:00:52 +0000
Delivery-date: Mon, 21 Aug 2006 04:15:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID e354171fa00b92cf3715a808069608bfa40780a0
# Parent  dbe9249ba61b0d616f3e43ee54fea83d635285c9
[POWEPRC] missing shadow skeleton
---
 xen/arch/powerpc/shadow.c         |   36 ++++++++++++++++++++++++++++++++++++
 xen/include/asm-powerpc/current.h |    2 +-
 2 files changed, 37 insertions(+), 1 deletion(-)

diff -r dbe9249ba61b -r e354171fa00b xen/include/asm-powerpc/current.h
--- a/xen/include/asm-powerpc/current.h Sun Aug 20 13:28:45 2006 -0400
+++ b/xen/include/asm-powerpc/current.h Mon Aug 21 06:53:55 2006 -0400
@@ -66,7 +66,7 @@ static inline struct cpu_user_regs *gues
 
 static inline void reset_stack_and_jump(void (*f)(void))
 {
-    void _reset_stack_and_jump(void (*f)(void), struct cpu_user_regs *regs);
+    void _reset_stack_and_jump(void (*)(void), struct cpu_user_regs *);
     struct cpu_user_regs *regs = guest_cpu_user_regs();
 
 #ifdef TRACK_RESUME
diff -r dbe9249ba61b -r e354171fa00b xen/arch/powerpc/shadow.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/arch/powerpc/shadow.c Mon Aug 21 06:53:55 2006 -0400
@@ -0,0 +1,36 @@
+#include <xen/config.h>
+#include <xen/types.h>
+#include <xen/shadow.h>
+#include <public/dom0_ops.h>
+
+int shadow_control_op(struct domain *d, 
+                      dom0_shadow_control_t *sc,
+                      XEN_GUEST_HANDLE(dom0_op_t) u_dom0_op)
+{
+    if ( unlikely(d == current->domain) )
+    {
+        DPRINTK("Don't try to do a shadow op on yourself!\n");
+        return -EINVAL;
+    }
+
+    switch ( sc->op )
+    {
+    case DOM0_SHADOW_CONTROL_OP_OFF:
+        return 0;
+
+    case DOM0_SHADOW2_CONTROL_OP_GET_ALLOCATION:
+        sc->mb = 0;
+        return 0;
+    case DOM0_SHADOW2_CONTROL_OP_SET_ALLOCATION:
+        if (sc->mb > 0) {
+            BUG();
+            return -ENOMEM;
+        }
+        return 0;
+
+    default:
+        printk("Bad shadow op %u\n", sc->op);
+        BUG();
+        return -EINVAL;
+    }
+}

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [POWEPRC] missing shadow skeleton, Xen patchbot-xenppc-unstable <=