ia64/xen-unstable

changeset 17123:4f8c3a61511c

x86 hvm: Fix bugzilla bug 1172.

Bug 1172 is caused by missing a type cast from mfn_t to paddr_t, when
in pae mode and hsot memory is larger than 4G.

Signed-off-by: Disheng Su <disheng.su@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Feb 26 14:40:44 2008 +0000 (2008-02-26)
parents 3278024fa4ea
children 76479f25cdac
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Tue Feb 26 14:39:26 2008 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Tue Feb 26 14:40:44 2008 +0000
     1.3 @@ -761,7 +761,7 @@ static always_inline void
     1.4              sflags |= get_pat_flags(v,
     1.5                                      gflags,
     1.6                                      gfn_to_paddr(target_gfn),
     1.7 -                                    mfn_x(target_mfn) << PAGE_SHIFT);
     1.8 +                                    ((paddr_t)mfn_x(target_mfn)) << PAGE_SHIFT);
     1.9      }
    1.10  
    1.11      // Set the A&D bits for higher level shadows.