WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] The patch allows the shadow mode code to support >4GB ph

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] The patch allows the shadow mode code to support >4GB physical memory. I
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Sep 2005 15:54:11 +0000
Delivery-date: Fri, 09 Sep 2005 15:52:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] The patch allows the shadow mode code to support >4GB physical memory. I, Xen patchbot -unstable <=