[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [xenppc-unstable] [POWERPC] enable shadow mode
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |