[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH RDMA support v1: 09/13] parse QMP string for new
From: |
mrhines |
Subject: |
[Qemu-devel] [RFC PATCH RDMA support v1: 09/13] parse QMP string for new 'rdma' protocol |
Date: |
Wed, 10 Apr 2013 18:28:17 -0400 |
From: "Michael R. Hines" <address@hidden>
This parse the QMP string for the new 'rdma' protocol
and calls out to the appropriate funtions to initiate
the connection before the migration starts.
Signed-off-by: Michael R. Hines <address@hidden>
---
migration.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/migration.c b/migration.c
index 41cf5ba..a2fcacf 100644
--- a/migration.c
+++ b/migration.c
@@ -81,6 +81,10 @@ void qemu_start_incoming_migration(const char *uri, Error
**errp)
if (strstart(uri, "tcp:", &p))
tcp_start_incoming_migration(p, errp);
+#ifdef CONFIG_RDMA
+ else if (strstart(uri, "rdma:", &p))
+ rdma_start_incoming_migration(p, errp);
+#endif
#if !defined(WIN32)
else if (strstart(uri, "exec:", &p))
exec_start_incoming_migration(p, errp);
@@ -124,7 +128,6 @@ void process_incoming_migration(QEMUFile *f)
Coroutine *co = qemu_coroutine_create(process_incoming_migration_co);
int fd = qemu_get_fd(f);
- assert(fd != -1);
qemu_set_nonblock(fd);
qemu_coroutine_enter(co, f);
}
@@ -409,6 +412,10 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,
if (strstart(uri, "tcp:", &p)) {
tcp_start_outgoing_migration(s, p, &local_err);
+#ifdef CONFIG_RDMA
+ } else if (strstart(uri, "rdma:", &p)) {
+ rdma_start_outgoing_migration(s, p, &local_err);
+#endif
#if !defined(WIN32)
} else if (strstart(uri, "exec:", &p)) {
exec_start_outgoing_migration(s, p, &local_err);
--
1.7.10.4
- Re: [Qemu-devel] [RFC PATCH RDMA support v1: 10/13] introduce new command migrate_check_for_zero, (continued)
[Qemu-devel] [RFC PATCH RDMA support v1: 11/13] send pc.ram over RDMA, mrhines, 2013/04/10
[Qemu-devel] [RFC PATCH RDMA support v1: 12/13] updated protocol documentation, mrhines, 2013/04/10
[Qemu-devel] [RFC PATCH RDMA support v1: 09/13] parse QMP string for new 'rdma' protocol,
mrhines <=
[Qemu-devel] [RFC PATCH RDMA support v1: 03/13] RDMA is enabled by default per the usual ./configure testing., mrhines, 2013/04/10
[Qemu-devel] [RFC PATCH RDMA support v1: 13/13] print out migration throughput while debugging, mrhines, 2013/04/10
[Qemu-devel] [RFC PATCH RDMA support v1: 02/13] Core RMDA logic, mrhines, 2013/04/10
Re: [Qemu-devel] [RFC PATCH RDMA support v7: 00/13] rdma cleanup and reordering, Michael R. Hines, 2013/04/10