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] x86: Fix memory_is_conventional_ram() e82

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: Fix memory_is_conventional_ram() e820 entry size check.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 25 Jan 2009 05:15:09 -0800
Delivery-date: Sun, 25 Jan 2009 05:14:54 -0800
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232878358 0
# Node ID 55bf9404a675357c5e0a00a49313124a2e77aaa8
# Parent  af2ea4e48669c447edcd245c17d0ffa8a953f162
x86: Fix memory_is_conventional_ram() e820 entry size check.

Thanks to Joe Cihula for spotting this.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/mm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r af2ea4e48669 -r 55bf9404a675 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Sat Jan 24 09:25:25 2009 +0000
+++ b/xen/arch/x86/mm.c Sun Jan 25 10:12:38 2009 +0000
@@ -298,7 +298,7 @@ int memory_is_conventional_ram(paddr_t p
     {
         if ( (e820.map[i].type == E820_RAM) &&
              (e820.map[i].addr <= p) &&
-             (e820.map[i].size > p) )
+             ((e820.map[i].addr + e820.map[i].size) > p) )
             return 1;
     }
 

_______________________________________________
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] x86: Fix memory_is_conventional_ram() e820 entry size check., Xen patchbot-unstable <=