|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Do not pass DIRECTMAP_VIRT_END to virt_to
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237541649 0
# Node ID bbfcea821a0ded028c1a81101b5992cafca32f0b
# Parent abb87a8387acbfd80a9e3475206f392db12e9c5e
Do not pass DIRECTMAP_VIRT_END to virt_to_mfn(). It's out of range.
Signed-off-by: Xiaowei Yang <xiaowei.yang@xxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
xen/common/page_alloc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r abb87a8387ac -r bbfcea821a0d xen/common/page_alloc.c
--- a/xen/common/page_alloc.c Fri Mar 20 09:10:55 2009 +0000
+++ b/xen/common/page_alloc.c Fri Mar 20 09:34:09 2009 +0000
@@ -299,7 +299,7 @@ static unsigned long init_node_heap(int
}
#ifdef DIRECTMAP_VIRT_END
else if ( nr >= needed &&
- mfn + needed <= virt_to_mfn(DIRECTMAP_VIRT_END) )
+ (mfn + needed) <= (virt_to_mfn(DIRECTMAP_VIRT_END - 1) + 1) )
{
_heap[node] = mfn_to_virt(mfn);
avail[node] = mfn_to_virt(mfn + needed) - sizeof(**avail) * NR_ZONES;
_______________________________________________
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] Do not pass DIRECTMAP_VIRT_END to virt_to_mfn(). It's out of range.,
Xen patchbot-unstable <=
|
|
|
|
|