[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [POWERPC] enable shadow mode



# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 3109eaa648e5bbde1faea82a893efc7c2bea7462
# Parent  04e5e80be909c06737b84ce776028b5d60118406
[POWERPC] enable shadow mode

This should have been enabled right from the begining.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 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 04e5e80be909 -r 3109eaa648e5 xen/arch/powerpc/mm.c
--- a/xen/arch/powerpc/mm.c     Mon Aug 14 18:38:28 2006 +0100
+++ 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 04e5e80be909 -r 3109eaa648e5 xen/include/asm-powerpc/config.h
--- a/xen/include/asm-powerpc/config.h  Mon Aug 14 18:38:28 2006 +0100
+++ 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 04e5e80be909 -r 3109eaa648e5 xen/include/asm-powerpc/shadow.h
--- a/xen/include/asm-powerpc/shadow.h  Mon Aug 14 18:38:28 2006 +0100
+++ 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.