Acknowledged.
On 04/11/2013 02:26 AM, Paolo Bonzini wrote:
Il 11/04/2013 00:28, mrhi...@linux.vnet.ibm.com ha scritto:
+#ifdef CONFIG_RDMA
+int qemu_rdma_registration_start(QEMUFile *f, void *opaque, uint32_t flags)
+{
+ DPRINTF("start section: %d\n", flags);
+ qemu_put_be64(f, RAM_SAVE_FLAG_HOOK);
+ return 0;
+}
+#endif
This must be in migration-rdma.c. Move RAM_SAVE_FLAG_HOOK to
migration/migration.h with a comment like this:
/* Whenever this is found in the data stream, the flags
* will be passed to ram_load_hook in the incoming-migration
* side. This lets before_ram_iterate/after_ram_iterate add
* transport-specific sections to the RAM migration data.
*/
Paolo