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] [xen-unstable] Fix 64bit shadow tracking

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix 64bit shadow tracking
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 19 Aug 2006 02:41:05 +0000
Delivery-date: Fri, 18 Aug 2006 19:46:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 tdeegan@xxxxxxxxxxxxxxxxxxxxx
# Node ID a88f8c6d94018eb23fcf64ae5457f055f62259bd
# Parent  59f7fc3e525679552da95414d79e88f608c8fba5
Fix 64bit shadow tracking
(The mask used to check for available shadows was off by 1 bit)

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
---
 xen/include/asm-x86/shadow2.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 59f7fc3e5256 -r a88f8c6d9401 xen/include/asm-x86/shadow2.h
--- a/xen/include/asm-x86/shadow2.h     Thu Aug 17 17:10:13 2006 +0100
+++ b/xen/include/asm-x86/shadow2.h     Thu Aug 17 18:39:10 2006 +0100
@@ -489,7 +489,7 @@ shadow2_guest_physmap_remove_page(struct
  */
 #define PGC_SH2_type_to_index(_type) ((_type) >> PGC_SH2_type_shift)
 #define SH2F_page_type_mask \
-    (((1u << PGC_SH2_type_to_index(PGC_SH2_max_shadow + 1u)) - 1u) - \
+    (((1u << (PGC_SH2_type_to_index(PGC_SH2_max_shadow) + 1u)) - 1u) - \
      ((1u << PGC_SH2_type_to_index(PGC_SH2_min_shadow)) - 1u))
 
 #define SH2F_L1_32   (1u << PGC_SH2_type_to_index(PGC_SH2_l1_32_shadow))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix 64bit shadow tracking, Xen patchbot-unstable <=