|
@@ -1641,6 +1641,34 @@
|
|
'rdma': 'InetSocketAddress',
|
|
'rdma': 'InetSocketAddress',
|
|
'file': 'FileMigrationArgs' } }
|
|
'file': 'FileMigrationArgs' } }
|
|
|
|
|
|
|
|
+##
|
|
|
|
+# @MigrationChannelType:
|
|
|
|
+#
|
|
|
|
+# The migration channel-type request options.
|
|
|
|
+#
|
|
|
|
+# @main: Main outbound migration channel.
|
|
|
|
+#
|
|
|
|
+# Since 8.1
|
|
|
|
+##
|
|
|
|
+{ 'enum': 'MigrationChannelType',
|
|
|
|
+ 'data': [ 'main' ] }
|
|
|
|
+
|
|
|
|
+##
|
|
|
|
+# @MigrationChannel:
|
|
|
|
+#
|
|
|
|
+# Migration stream channel parameters.
|
|
|
|
+#
|
|
|
|
+# @channel-type: Channel type for transfering packet information.
|
|
|
|
+#
|
|
|
|
+# @addr: Migration endpoint configuration on destination interface.
|
|
|
|
+#
|
|
|
|
+# Since 8.1
|
|
|
|
+##
|
|
|
|
+{ 'struct': 'MigrationChannel',
|
|
|
|
+ 'data': {
|
|
|
|
+ 'channel-type': 'MigrationChannelType',
|
|
|
|
+ 'addr': 'MigrationAddress' } }
|
|
|
|
+
|
|
##
|
|
##
|
|
# @migrate:
|
|
# @migrate:
|
|
#
|
|
#
|
|
@@ -1648,6 +1676,9 @@
|
|
#
|
|
#
|
|
# @uri: the Uniform Resource Identifier of the destination VM
|
|
# @uri: the Uniform Resource Identifier of the destination VM
|
|
#
|
|
#
|
|
|
|
+# @channels: list of migration stream channels with each stream in the
|
|
|
|
+# list connected to a destination interface endpoint.
|
|
|
|
+#
|
|
# @blk: do block migration (full disk copy)
|
|
# @blk: do block migration (full disk copy)
|
|
#
|
|
#
|
|
# @inc: incremental disk copy migration
|
|
# @inc: incremental disk copy migration
|
|
@@ -1677,13 +1708,57 @@
|
|
# 3. The user Monitor's "detach" argument is invalid in QMP and should
|
|
# 3. The user Monitor's "detach" argument is invalid in QMP and should
|
|
# not be used
|
|
# not be used
|
|
#
|
|
#
|
|
|
|
+# 4. The uri argument should have the Uniform Resource Identifier of
|
|
|
|
+# default destination VM. This connection will be bound to default
|
|
|
|
+# network.
|
|
|
|
+#
|
|
|
|
+# 5. For now, number of migration streams is restricted to one, i.e
|
|
|
|
+# number of items in 'channels' list is just 1.
|
|
|
|
+#
|
|
|
|
+# 6. The 'uri' and 'channels' arguments are mutually exclusive;
|
|
|
|
+# exactly one of the two should be present.
|
|
|
|
+#
|
|
# Example:
|
|
# Example:
|
|
#
|
|
#
|
|
# -> { "execute": "migrate", "arguments": { "uri": "tcp:0:4446" } }
|
|
# -> { "execute": "migrate", "arguments": { "uri": "tcp:0:4446" } }
|
|
# <- { "return": {} }
|
|
# <- { "return": {} }
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "socket",
|
|
|
|
+# "type": "inet",
|
|
|
|
+# "host": "10.12.34.9",
|
|
|
|
+# "port": "1050" } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
|
|
+#
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "exec",
|
|
|
|
+# "args": [ "/bin/nc", "-p", "6000",
|
|
|
|
+# "/some/sock" ] } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
|
|
+#
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "rdma",
|
|
|
|
+# "host": "10.12.34.9",
|
|
|
|
+# "port": "1050" } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
|
|
+#
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "file",
|
|
|
|
+# "filename": "/tmp/migfile",
|
|
|
|
+# "offset": "0x1000" } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
|
|
+#
|
|
##
|
|
##
|
|
{ 'command': 'migrate',
|
|
{ 'command': 'migrate',
|
|
'data': {'uri': 'str',
|
|
'data': {'uri': 'str',
|
|
|
|
+ '*channels': [ 'MigrationChannel' ],
|
|
'*blk': { 'type': 'bool', 'features': [ 'deprecated' ] },
|
|
'*blk': { 'type': 'bool', 'features': [ 'deprecated' ] },
|
|
'*inc': { 'type': 'bool', 'features': [ 'deprecated' ] },
|
|
'*inc': { 'type': 'bool', 'features': [ 'deprecated' ] },
|
|
'*detach': 'bool', '*resume': 'bool' } }
|
|
'*detach': 'bool', '*resume': 'bool' } }
|
|
@@ -1697,6 +1772,9 @@
|
|
# @uri: The Uniform Resource Identifier identifying the source or
|
|
# @uri: The Uniform Resource Identifier identifying the source or
|
|
# address to listen on
|
|
# address to listen on
|
|
#
|
|
#
|
|
|
|
+# @channels: list of migration stream channels with each stream in the
|
|
|
|
+# list connected to a destination interface endpoint.
|
|
|
|
+#
|
|
# Returns: nothing on success
|
|
# Returns: nothing on success
|
|
#
|
|
#
|
|
# Since: 2.3
|
|
# Since: 2.3
|
|
@@ -1712,13 +1790,46 @@
|
|
#
|
|
#
|
|
# 3. The uri format is the same as for -incoming
|
|
# 3. The uri format is the same as for -incoming
|
|
#
|
|
#
|
|
|
|
+# 5. For now, number of migration streams is restricted to one, i.e
|
|
|
|
+# number of items in 'channels' list is just 1.
|
|
|
|
+#
|
|
|
|
+# 4. The 'uri' and 'channels' arguments are mutually exclusive;
|
|
|
|
+# exactly one of the two should be present.
|
|
|
|
+#
|
|
# Example:
|
|
# Example:
|
|
#
|
|
#
|
|
# -> { "execute": "migrate-incoming",
|
|
# -> { "execute": "migrate-incoming",
|
|
# "arguments": { "uri": "tcp::4446" } }
|
|
# "arguments": { "uri": "tcp::4446" } }
|
|
# <- { "return": {} }
|
|
# <- { "return": {} }
|
|
|
|
+#
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "socket",
|
|
|
|
+# "type": "inet",
|
|
|
|
+# "host": "10.12.34.9",
|
|
|
|
+# "port": "1050" } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
|
|
+#
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "exec",
|
|
|
|
+# "args": [ "/bin/nc", "-p", "6000",
|
|
|
|
+# "/some/sock" ] } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
|
|
+#
|
|
|
|
+# -> { "execute": "migrate",
|
|
|
|
+# "arguments": {
|
|
|
|
+# "channels": [ { "channel-type": "main",
|
|
|
|
+# "addr": { "transport": "rdma",
|
|
|
|
+# "host": "10.12.34.9",
|
|
|
|
+# "port": "1050" } } ] } }
|
|
|
|
+# <- { "return": {} }
|
|
##
|
|
##
|
|
-{ 'command': 'migrate-incoming', 'data': {'uri': 'str' } }
|
|
|
|
|
|
+{ 'command': 'migrate-incoming',
|
|
|
|
+ 'data': {'*uri': 'str',
|
|
|
|
+ '*channels': [ 'MigrationChannel' ] } }
|
|
|
|
|
|
##
|
|
##
|
|
# @xen-save-devices-state:
|
|
# @xen-save-devices-state:
|