diff options
author | Juan Quintela <quintela@redhat.com> | 2015-11-10 17:43:04 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-11-12 17:52:29 +0100 |
commit | 80e60c6e1c417aa50a4fed1cb1a2f73885be3bef (patch) | |
tree | a5060152dc0e653584b825b1ee0bef0791da1ef9 /migration/rdma.c | |
parent | 9458ad6b445ff1e886f74ed75cf5050721f93b3e (diff) | |
download | qemu-80e60c6e1c417aa50a4fed1cb1a2f73885be3bef.zip qemu-80e60c6e1c417aa50a4fed1cb1a2f73885be3bef.tar.gz qemu-80e60c6e1c417aa50a4fed1cb1a2f73885be3bef.tar.bz2 |
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>
Diffstat (limited to 'migration/rdma.c')
-rw-r--r-- | migration/rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/rdma.c b/migration/rdma.c index 553fbd7..dcabb91 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -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, |