mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
migration: Make 32bit linux compile with RDMA
Rest of the file already use that trick. 64bit offsets make no sense in 32bit archs, but that is ram_addr_t for you. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
9458ad6b44
commit
80e60c6e1c
@ -577,7 +577,7 @@ static int rdma_add_block(RDMAContext *rdma, const char *block_name,
|
||||
block->is_ram_block = local->init ? false : true;
|
||||
|
||||
if (rdma->blockmap) {
|
||||
g_hash_table_insert(rdma->blockmap, (void *) block_offset, block);
|
||||
g_hash_table_insert(rdma->blockmap, (void *)(uintptr_t)block_offset, block);
|
||||
}
|
||||
|
||||
trace_rdma_add_block(block_name, local->nb_blocks,
|
||||
|
Loading…
Reference in New Issue
Block a user