stubdom: Fix modified_memory size calculation
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 -
Signed-off-by Samuel Thibault <[email protected]>
tools/ioemu/target-i386-dm/exec-dm.c +2 -2
@@ -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 ();