Rework ram_control_load_hook to hook during block load
commit632e3a5cd812d6bbd38fd2f3ffc189ff5ea51926
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 11 Jun 2015 17:17:23 +0000 (11 18:17 +0100)
committerJuan Quintela <quintela@redhat.com>
Tue, 7 Jul 2015 12:54:48 +0000 (7 14:54 +0200)
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