|
@@ -20,6 +20,8 @@
|
|
#include "file.h"
|
|
#include "file.h"
|
|
#include "migration.h"
|
|
#include "migration.h"
|
|
#include "monitor/monitor.h"
|
|
#include "monitor/monitor.h"
|
|
|
|
+#include "qemu/error-report.h"
|
|
|
|
+#include "qemu/sockets.h"
|
|
#include "io/channel-util.h"
|
|
#include "io/channel-util.h"
|
|
#include "trace.h"
|
|
#include "trace.h"
|
|
|
|
|
|
@@ -32,6 +34,11 @@ void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!fd_is_socket(fd)) {
|
|
|
|
+ warn_report("fd: migration to a file is deprecated."
|
|
|
|
+ " Use file: instead.");
|
|
|
|
+ }
|
|
|
|
+
|
|
trace_migration_fd_outgoing(fd);
|
|
trace_migration_fd_outgoing(fd);
|
|
ioc = qio_channel_new_fd(fd, errp);
|
|
ioc = qio_channel_new_fd(fd, errp);
|
|
if (!ioc) {
|
|
if (!ioc) {
|
|
@@ -61,6 +68,11 @@ void fd_start_incoming_migration(const char *fdname, Error **errp)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!fd_is_socket(fd)) {
|
|
|
|
+ warn_report("fd: migration to a file is deprecated."
|
|
|
|
+ " Use file: instead.");
|
|
|
|
+ }
|
|
|
|
+
|
|
trace_migration_fd_incoming(fd);
|
|
trace_migration_fd_incoming(fd);
|
|
|
|
|
|
ioc = qio_channel_new_fd(fd, errp);
|
|
ioc = qio_channel_new_fd(fd, errp);
|