direct-io.hg

changeset 11100:3109eaa648e5

[POWERPC] enable shadow mode

This should have been enabled right from the begining.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Wed Aug 09 18:53:00 2006 -0400 (2006-08-09)
parents 04e5e80be909
children cdb24f869a56
files xen/arch/powerpc/mm.c xen/include/asm-powerpc/config.h xen/include/asm-powerpc/shadow.h
line diff
     1.1 --- a/xen/arch/powerpc/mm.c	Mon Aug 14 18:38:28 2006 +0100
     1.2 +++ b/xen/arch/powerpc/mm.c	Wed Aug 09 18:53:00 2006 -0400
     1.3 @@ -20,6 +20,7 @@
     1.4  
     1.5  #include <xen/config.h>
     1.6  #include <xen/mm.h>
     1.7 +#include <xen/shadow.h>
     1.8  #include <xen/kernel.h>
     1.9  #include <xen/sched.h>
    1.10  #include <asm/misc.h>
    1.11 @@ -139,3 +140,19 @@ ulong pfn2mfn(struct domain *d, long pfn
    1.12  
    1.13      return mfn;
    1.14  }
    1.15 +
    1.16 +void guest_physmap_add_page(
    1.17 +    struct domain *d, unsigned long gpfn, unsigned long mfn)
    1.18 +{
    1.19 +    panic("%s\n", __func__);
    1.20 +}
    1.21 +void guest_physmap_remove_page(
    1.22 +    struct domain *d, unsigned long gpfn, unsigned long mfn)
    1.23 +{
    1.24 +    panic("%s\n", __func__);
    1.25 +}
    1.26 +void shadow_drop_references(
    1.27 +    struct domain *d, struct page_info *page)
    1.28 +{
    1.29 +    panic("%s\n", __func__);
    1.30 +}
     2.1 --- a/xen/include/asm-powerpc/config.h	Mon Aug 14 18:38:28 2006 +0100
     2.2 +++ b/xen/include/asm-powerpc/config.h	Wed Aug 09 18:53:00 2006 -0400
     2.3 @@ -47,6 +47,7 @@ extern char __bss_start[];
     2.4  /* this should be per processor, but for now */
     2.5  #define CACHE_LINE_SIZE 128
     2.6  
     2.7 +#define CONFIG_SHADOW 1
     2.8  #define CONFIG_GDB 1
     2.9  #define CONFIG_SMP 1
    2.10  #define CONFIG_PCI 1
     3.1 --- a/xen/include/asm-powerpc/shadow.h	Mon Aug 14 18:38:28 2006 +0100
     3.2 +++ b/xen/include/asm-powerpc/shadow.h	Wed Aug 09 18:53:00 2006 -0400
     3.3 @@ -23,7 +23,7 @@
     3.4  
     3.5  #include <xen/sched.h>
     3.6  
     3.7 -#define shadow_mode_translate(_d) 1
     3.8 +#define shadow_mode_translate(_d) (1)
     3.9  
    3.10  #define __translate_gpfn_to_mfn(_d, gpfn)              \
    3.11      ( (shadow_mode_translate(_d))                      \
    3.12 @@ -41,5 +41,12 @@ translate_gpfn_to_mfn(struct domain *rd,
    3.13      trap();
    3.14      return 0;
    3.15  }
    3.16 +extern void guest_physmap_add_page(
    3.17 +    struct domain *d, unsigned long gpfn, unsigned long mfn);
    3.18  
    3.19 +extern void guest_physmap_remove_page(
    3.20 +    struct domain *d, unsigned long gpfn, unsigned long mfn);
    3.21 +
    3.22 +extern void shadow_drop_references(
    3.23 +    struct domain *d, struct page_info *page);
    3.24  #endif