qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

migration: Export fd.c functions in its own file

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

+25 -4
-4
include/migration/migration.h
··· 171 171 172 172 void unix_start_outgoing_migration(MigrationState *s, const char *path, Error **errp); 173 173 174 - void fd_start_incoming_migration(const char *path, Error **errp); 175 - 176 - void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **errp); 177 - 178 174 void rdma_start_outgoing_migration(void *opaque, const char *host_port, Error **errp); 179 175 180 176 void rdma_start_incoming_migration(const char *host_port, Error **errp);
+1
migration/fd.c
··· 18 18 #include "qapi/error.h" 19 19 #include "qemu-common.h" 20 20 #include "channel.h" 21 + #include "fd.h" 21 22 #include "migration/migration.h" 22 23 #include "monitor/monitor.h" 23 24 #include "io/channel-util.h"
+23
migration/fd.h
··· 1 + /* 2 + * QEMU live migration via generic fd 3 + * 4 + * Copyright Red Hat, Inc. 2009-2016 5 + * 6 + * Authors: 7 + * Chris Lalancette <clalance@redhat.com> 8 + * Daniel P. Berrange <berrange@redhat.com> 9 + * 10 + * This work is licensed under the terms of the GNU GPL, version 2. See 11 + * the COPYING file in the top-level directory. 12 + * 13 + * Contributions after 2012-01-13 are licensed under the terms of the 14 + * GNU GPL, version 2 or (at your option) any later version. 15 + */ 16 + 17 + #ifndef QEMU_MIGRATION_FD_H 18 + #define QEMU_MIGRATION_FD_H 19 + void fd_start_incoming_migration(const char *path, Error **errp); 20 + 21 + void fd_start_outgoing_migration(MigrationState *s, const char *fdname, 22 + Error **errp); 23 + #endif
+1
migration/migration.c
··· 19 19 #include "qemu/main-loop.h" 20 20 #include "migration/blocker.h" 21 21 #include "exec.h" 22 + #include "fd.h" 22 23 #include "migration/migration.h" 23 24 #include "savevm.h" 24 25 #include "qemu-file-channel.h"