[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] The patch allows the shadow mode code to support >4GB physical memory. I
# HG changeset patch # User kaf24@xxxxxxxxxxxxxxxxxxxx # Node ID 16cd990994d54b28280f587ac876f14c15f1f4a8 # Parent ec4a3f2d060e1dcc137cca136309ca67d46fbb85 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@xxxxxxxxx> diff -r ec4a3f2d060e -r 16cd990994d5 xen/include/asm-x86/mm.h --- a/xen/include/asm-x86/mm.h Fri Sep 9 15:33:32 2005 +++ b/xen/include/asm-x86/mm.h Fri Sep 9 15:52:52 2005 @@ -98,9 +98,10 @@ /* 16-bit count of uses of this frame as its current type. */ #define PGT_count_mask ((1U<<16)-1) -#define PGT_mfn_mask ((1U<<20)-1) /* mfn mask for shadow types */ - -#define PGT_score_shift 20 + /* 23-bit mfn mask for shadow types: good for up to 32GB RAM. */ +#define PGT_mfn_mask ((1U<<23)-1) + +#define PGT_score_shift 23 #define PGT_score_mask (((1U<<4)-1)<<PGT_score_shift) /* Cleared when the owning guest 'frees' this page. */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |