Understood......will take care of both of these. On 03/11/2013 10:07 AM, Paolo Bonzini wrote:
Only used in qemu_rdma_init_ram_blocks. Can you add instead an API like qemu_ram_foreach_block( void (*fn)(void *host_addr, ram_addr_t offset, ram_addr_t length, void *opaque), void *opaque) ? BTW, please avoid arbitrary limits like RDMA_MAX_RAM_BLOCKS. Can you use a list (see qemu-queue.h; it is the same as the BSD queue.h) instead of current_index? Paolo