[Kimchi-devel] [PATCH] [Kimchi 1/3] Live migration RDMA support: doc changes

dhbarboza82 at gmail.com dhbarboza82 at gmail.com
Thu Jan 5 17:01:07 UTC 2017


From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>

This patch adds a new boolean parameter of the migrate API, called
'enable_rdma', in docs/API.md and API.json.

Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
---
 API.json    | 5 +++++
 docs/API.md | 1 +
 i18n.py     | 3 ++-
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/API.json b/API.json
index 7dcf435..5729e5d 100644
--- a/API.json
+++ b/API.json
@@ -444,6 +444,11 @@
                     "description": "Password of the user in the remote server",
                     "type": "string",
                     "error": "KCHVM0069E"
+                },
+                "enable_rdma": {
+                    "description": "Enables RDMA transport",
+                    "type": "boolean",
+                    "error": "KCHVM0091E"
                 }
             },
             "additionalProperties": false
diff --git a/docs/API.md b/docs/API.md
index b29108d..3ecc7a0 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -219,6 +219,7 @@ mode without block migration.
     * remote_host: IP address or hostname of the remote server.
     * user *(optional)*: User to log on at the remote server.
     * password *(optional)*: password of the user in the remote server.
+    * enable_rdma *(optional)*: boolean. If set to True, the migration will use RDMA transport.
 
 ### Sub-resource: Virtual Machine Screenshot
 
diff --git a/i18n.py b/i18n.py
index da1391b..6e2daa8 100644
--- a/i18n.py
+++ b/i18n.py
@@ -1,7 +1,7 @@
 #
 # Project Kimchi
 #
-# Copyright IBM Corp, 2015-2016
+# Copyright IBM Corp, 2015-2017
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -141,6 +141,7 @@ messages = {
     "KCHVM0088E": _("invalid console type, supported types are sclp/virtio."),
     "KCHVM0089E": _("Unable to setup password-less login at remote host %(host)s using user %(user)s: remote directory %(sshdir)s does not exist."),
     "KCHVM0090E": _("Unable to create a password-less libvirt connection to the remote libvirt daemon at host %(host)s with the user %(user)s. Please verify the remote server libvirt configuration. More information: http://libvirt.org/auth.html ."),
+    "KCHVM0091E": _("'enable_rdma' must be of type boolean (true or false)."),
 
     "KCHVMHDEV0001E": _("VM %(vmid)s does not contain directly assigned host device %(dev_name)s."),
     "KCHVMHDEV0002E": _("The host device %(dev_name)s is not allowed to directly assign to VM."),
-- 
2.7.4



More information about the Kimchi-devel mailing list