[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86_64: Fix handling of DIRECTMAP_VIRT_START in virt_to_maddr().
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1237539443 0 # Node ID 4846d7ae75cd6790b242b23c5b6054c3a54f5db3 # Parent 2a373e32b04d05b64048d26c8faf152026ec93b5 x86_64: Fix handling of DIRECTMAP_VIRT_START in virt_to_maddr(). Signed-off-by: Xiaowei Yang <xiaowei.yang@xxxxxxxxx> --- xen/include/asm-x86/x86_64/page.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r 2a373e32b04d -r 4846d7ae75cd xen/include/asm-x86/x86_64/page.h --- a/xen/include/asm-x86/x86_64/page.h Fri Mar 20 08:49:17 2009 +0000 +++ b/xen/include/asm-x86/x86_64/page.h Fri Mar 20 08:57:23 2009 +0000 @@ -40,7 +40,7 @@ static inline unsigned long __virt_to_ma ASSERT(va >= XEN_VIRT_START); ASSERT(va < DIRECTMAP_VIRT_END); ASSERT((va < XEN_VIRT_END) || (va >= DIRECTMAP_VIRT_START)); - if ( va > DIRECTMAP_VIRT_START ) + if ( va >= DIRECTMAP_VIRT_START ) return va - DIRECTMAP_VIRT_START; return va - XEN_VIRT_START + xen_phys_start; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |