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] [POWERPC] enable shadow mode

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [POWERPC] enable shadow mode
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Aug 2006 23:00:52 +0000
Delivery-date: Wed, 09 Aug 2006 16:06:22 -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 1f611b58729f92845fbea22ae0d273d63940cbb8
# Parent  e60de2425ec47caf50301b6aa164c61ff1540eb7
[POWERPC] enable shadow mode

This should have been enabled right from the begining.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/mm.c            |   17 +++++++++++++++++
 xen/include/asm-powerpc/config.h |    1 +
 xen/include/asm-powerpc/shadow.h |    9 ++++++++-
 3 files changed, 26 insertions(+), 1 deletion(-)

diff -r e60de2425ec4 -r 1f611b58729f xen/arch/powerpc/mm.c
--- a/xen/arch/powerpc/mm.c     Wed Aug 09 15:38:37 2006 -0400
+++ b/xen/arch/powerpc/mm.c     Wed Aug 09 18:53:00 2006 -0400
@@ -20,6 +20,7 @@
 
 #include <xen/config.h>
 #include <xen/mm.h>
+#include <xen/shadow.h>
 #include <xen/kernel.h>
 #include <xen/sched.h>
 #include <asm/misc.h>
@@ -139,3 +140,19 @@ ulong pfn2mfn(struct domain *d, long pfn
 
     return mfn;
 }
+
+void guest_physmap_add_page(
+    struct domain *d, unsigned long gpfn, unsigned long mfn)
+{
+    panic("%s\n", __func__);
+}
+void guest_physmap_remove_page(
+    struct domain *d, unsigned long gpfn, unsigned long mfn)
+{
+    panic("%s\n", __func__);
+}
+void shadow_drop_references(
+    struct domain *d, struct page_info *page)
+{
+    panic("%s\n", __func__);
+}
diff -r e60de2425ec4 -r 1f611b58729f xen/include/asm-powerpc/config.h
--- a/xen/include/asm-powerpc/config.h  Wed Aug 09 15:38:37 2006 -0400
+++ b/xen/include/asm-powerpc/config.h  Wed Aug 09 18:53:00 2006 -0400
@@ -47,6 +47,7 @@ extern char __bss_start[];
 /* this should be per processor, but for now */
 #define CACHE_LINE_SIZE 128
 
+#define CONFIG_SHADOW 1
 #define CONFIG_GDB 1
 #define CONFIG_SMP 1
 #define CONFIG_PCI 1
diff -r e60de2425ec4 -r 1f611b58729f xen/include/asm-powerpc/shadow.h
--- a/xen/include/asm-powerpc/shadow.h  Wed Aug 09 15:38:37 2006 -0400
+++ b/xen/include/asm-powerpc/shadow.h  Wed Aug 09 18:53:00 2006 -0400
@@ -23,7 +23,7 @@
 
 #include <xen/sched.h>
 
-#define shadow_mode_translate(_d) 1
+#define shadow_mode_translate(_d) (1)
 
 #define __translate_gpfn_to_mfn(_d, gpfn)              \
     ( (shadow_mode_translate(_d))                      \
@@ -41,5 +41,12 @@ translate_gpfn_to_mfn(struct domain *rd,
     trap();
     return 0;
 }
+extern void guest_physmap_add_page(
+    struct domain *d, unsigned long gpfn, unsigned long mfn);
 
+extern void guest_physmap_remove_page(
+    struct domain *d, unsigned long gpfn, unsigned long mfn);
+
+extern void shadow_drop_references(
+    struct domain *d, struct page_info *page);
 #endif

_______________________________________________
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] [POWERPC] enable shadow mode, Xen patchbot-xenppc-unstable <=