]> git.proxmox.com Git - mirror_qemu.git/commit - migration/rdma.c
Rework ram_control_load_hook to hook during block load
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 11 Jun 2015 17:17:23 +0000 (18:17 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 7 Jul 2015 12:54:48 +0000 (14:54 +0200)
commit632e3a5cd812d6bbd38fd2f3ffc189ff5ea51926
tree2a6c855e5db41e88b4df8e20524c33be4a8adeff
parentb12f7777981953b7d939496283014740bdd6de64
Rework ram_control_load_hook to hook during block load

We need the names of RAMBlocks as they're loaded for RDMA,
reuse a slightly modified ram_control_load_hook:
  a) Pass a 'data' parameter to use for the name in the block-reg
     case
  b) Only some hook types now require the presence of a hook function.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/migration.h
include/migration/qemu-file.h
migration/qemu-file.c
migration/ram.c
migration/rdma.c
trace-events