in favor of qemu_ram_foreach_block