[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v13 01/10] migration: New QAPI type 'MigrateAddress'
|
From: |
Het Gala |
|
Subject: |
[PATCH v13 01/10] migration: New QAPI type 'MigrateAddress' |
|
Date: |
Thu, 12 Oct 2023 15:10:43 +0000 |
This patch introduces well defined MigrateAddress struct
and its related child objects.
The existing argument of 'migrate' and 'migrate-incoming' QAPI
- 'uri' is of type string. The current implementation follows
double encoding scheme for fetching migration parameters like
'uri' and this is not an ideal design.
Motive for intoducing struct level design is to prevent double
encoding of QAPI arguments, as Qemu should be able to directly
use the QAPI arguments without any level of encoding.
Note: this commit only adds the type, and actual uses comes
in later commits.
Suggested-by: Aravind Retnakaran <aravind.retnakaran@nutanix.com>
Signed-off-by: Het Gala <het.gala@nutanix.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
---
qapi/migration.json | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/qapi/migration.json b/qapi/migration.json
index d7dfaa5db9..8847def17e 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -1477,6 +1477,47 @@
##
{ 'command': 'migrate-continue', 'data': {'state': 'MigrationStatus'} }
+##
+# @MigrationAddressType:
+#
+# The migration stream transport mechanisms.
+#
+# @socket: Migrate via socket.
+#
+# @exec: Direct the migration stream to another process.
+#
+# @rdma: Migrate via RDMA.
+#
+# Since 8.2
+##
+{ 'enum': 'MigrationAddressType',
+ 'data': ['socket', 'exec', 'rdma'] }
+
+##
+# @MigrationExecCommand:
+#
+# @args: command (list head) and arguments to execute.
+#
+# Since 8.2
+##
+{ 'struct': 'MigrationExecCommand',
+ 'data': {'args': [ 'str' ] } }
+
+##
+# @MigrationAddress:
+#
+# Migration endpoint configuration.
+#
+# Since 8.2
+##
+{ 'union': 'MigrationAddress',
+ 'base': { 'transport' : 'MigrationAddressType'},
+ 'discriminator': 'transport',
+ 'data': {
+ 'socket': 'SocketAddress',
+ 'exec': 'MigrationExecCommand',
+ 'rdma': 'InetSocketAddress' } }
+
##
# @migrate:
#
--
2.22.3
- [PATCH v13 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration, Het Gala, 2023/10/12
- [PATCH v13 01/10] migration: New QAPI type 'MigrateAddress',
Het Gala <=
- [PATCH v13 03/10] migration: convert socket backend to accept MigrateAddress, Het Gala, 2023/10/12
- [PATCH v13 02/10] migration: convert migration 'uri' into 'MigrateAddress', Het Gala, 2023/10/12
- [PATCH v13 04/10] migration: convert rdma backend to accept MigrateAddress, Het Gala, 2023/10/12
- [PATCH v13 05/10] migration: convert exec backend to accept MigrateAddress., Het Gala, 2023/10/12
- [PATCH v13 07/10] migration: modify migration_channels_and_uri_compatible() for new QAPI syntax, Het Gala, 2023/10/12
- [PATCH v13 06/10] migration: New migrate and migrate-incoming argument 'channels', Het Gala, 2023/10/12
- [PATCH v13 08/10] migration: Implement MigrateChannelList to qmp migration flow., Het Gala, 2023/10/12
- [PATCH v13 10/10] migration: modify test_multifd_tcp_none() to use new QAPI syntax., Het Gala, 2023/10/12
- [PATCH v13 09/10] migration: Implement MigrateChannelList to hmp migration flow., Het Gala, 2023/10/12
- Re: [PATCH v13 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration, Het Gala, 2023/10/18