ia64/xen-unstable

changeset 17994:914a31d2ad08

stubdom: Fix modified_memory size calculation
>> is less prioritized than -

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jul 08 12:24:14 2008 +0100 (2008-07-08)
parents bd97e45e073a
children edd6969f609c
files tools/ioemu/target-i386-dm/exec-dm.c
line diff
     1.1 --- a/tools/ioemu/target-i386-dm/exec-dm.c	Tue Jul 08 09:28:50 2008 +0100
     1.2 +++ b/tools/ioemu/target-i386-dm/exec-dm.c	Tue Jul 08 12:24:14 2008 +0100
     1.3 @@ -573,8 +573,8 @@ void cpu_physical_memory_rw(target_phys_
     1.4  #ifdef CONFIG_STUBDOM
     1.5      if (logdirty_bitmap != NULL)
     1.6          xc_hvm_modified_memory(xc_handle, domid, _addr >> TARGET_PAGE_BITS,
     1.7 -                (_addr + _len + TARGET_PAGE_SIZE - 1) >> TARGET_PAGE_BITS
     1.8 -                    - _addr >> TARGET_PAGE_BITS);
     1.9 +                ((_addr + _len + TARGET_PAGE_SIZE - 1) >> TARGET_PAGE_BITS)
    1.10 +                    - (_addr >> TARGET_PAGE_BITS));
    1.11  #endif
    1.12  
    1.13      mapcache_unlock();