direct-io.hg

changeset 6704:16cd990994d5

The patch allows the shadow mode code to support >4GB physical memory. I
tested VMX domains on an x86_64 machine with >4GB; it fails without this
change. This should be applicable to PAE as well.

This patch is good for up to 32GB RAM.

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Sep 09 15:52:52 2005 +0000 (2005-09-09)
parents ec4a3f2d060e
children a5e9a7fcade9
files xen/include/asm-x86/mm.h
line diff
     1.1 --- a/xen/include/asm-x86/mm.h	Fri Sep 09 15:33:32 2005 +0000
     1.2 +++ b/xen/include/asm-x86/mm.h	Fri Sep 09 15:52:52 2005 +0000
     1.3 @@ -98,9 +98,10 @@ struct pfn_info
     1.4   /* 16-bit count of uses of this frame as its current type. */
     1.5  #define PGT_count_mask      ((1U<<16)-1)
     1.6  
     1.7 -#define PGT_mfn_mask        ((1U<<20)-1) /* mfn mask for shadow types */
     1.8 + /* 23-bit mfn mask for shadow types: good for up to 32GB RAM. */
     1.9 +#define PGT_mfn_mask        ((1U<<23)-1)
    1.10  
    1.11 -#define PGT_score_shift     20
    1.12 +#define PGT_score_shift     23
    1.13  #define PGT_score_mask      (((1U<<4)-1)<<PGT_score_shift)
    1.14  
    1.15   /* Cleared when the owning guest 'frees' this page. */