Skip to contentSkip to conversation

stubdom: Fix modified_memory size calculation

PATCH New Samuel Thibault 1 participant 1 message Jul 8, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: Fix modified_memory size calculation

stubdom: Fix modified_memory size calculation

Quoted 1 line
Quoted 1 line

is less prioritized than -

tools/ioemu/target-i386-dm/exec-dm.c +2 -2
diff -r 87954c7d407e tools/ioemu/target-i386-dm/exec-dm.c
@@ -573,8 +573,8 @@
 #ifdef CONFIG_STUBDOM
     if (logdirty_bitmap != NULL)
         xc_hvm_modified_memory(xc_handle, domid, _addr >> TARGET_PAGE_BITS,
-                (_addr + _len + TARGET_PAGE_SIZE - 1) >> TARGET_PAGE_BITS
-                    - _addr >> TARGET_PAGE_BITS);
+                ((_addr + _len + TARGET_PAGE_SIZE - 1) >> TARGET_PAGE_BITS)
+                    - (_addr >> TARGET_PAGE_BITS));
 #endif
 
     mapcache_unlock();