[PATCH v12 10/10] migration: modify test_multifd_tcp_none() to use new QAPI syntax.

2023-10-09 Thread Het Gala
modify multifd tcp common test to incorporate the new QAPI syntax defined. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration

[PATCH v12 08/10] migration: Implement MigrateChannelList to qmp migration flow.

2023-10-09 Thread Het Gala
-off-by: Het Gala --- migration/migration.c | 95 +++ 1 file changed, 52 insertions(+), 43 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 23c3a1079f..ff04728b33 100644 --- a/migration/migration.c +++ b/migration/migration.c

[PATCH v12 07/10] migration: modify migration_channels_and_uri_compatible() for new QAPI syntax

2023-10-09 Thread Het Gala
eChannel' : migration_channels_and_uri_compatible() -> migration_channels_and_transport_compatible() passes object as argument and check for valid transport mechanism. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Daniel P. Berrangé --- migration/migration.c | 25 ++--- 1

[PATCH v12 09/10] migration: Implement MigrateChannelList to hmp migration flow.

2023-10-09 Thread Het Gala
Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints for hmp migration. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration-hmp-cmds.c | 15 +-- migration/migration.c | 5

[PATCH v12 03/10] migration: convert socket backend to accept MigrateAddress

2023-10-09 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Daniel P. Berrangé --- migration/migration.c | 30 ++ migration/socket.c| 39 +-- migration/socket.h| 7 --- 3 files changed, 31 insertions(+), 45 deleti

[PATCH v12 02/10] migration: convert migration 'uri' into 'MigrateAddress'

2023-10-09 Thread Het Gala
This patch parses 'migrate' and 'migrate-incoming' QAPI's 'uri' string containing migration connection related information and stores them inside well defined 'MigrateAddress' struct. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- m

[PATCH v12 05/10] migration: convert exec backend to accept MigrateAddress.

2023-10-09 Thread Het Gala
Exec transport backend for 'migrate'/'migrate-incoming' QAPIs accept new wire protocol of MigrateAddress struct. It is achived by parsing 'uri' string and storing migration parameters required for exec connection into strList struct. Suggested-by: Aravind Retna

Re: [PATCH v11 02/10] migration: convert migration 'uri' into 'MigrateAddress'

2023-10-09 Thread Het Gala
On 10/9/2023 7:43 PM, Fabiano Rosas wrote: Het Gala writes: On 10/4/2023 11:42 PM, Fabiano Rosas wrote: Daniel P. Berrangé writes: On Wed, Oct 04, 2023 at 11:43:12AM -0300, Fabiano Rosas wrote: Het Gala writes: This patch parses 'migrate' and 'migrate-incoming'

Re: [PATCH v11 08/10] migration: Implement MigrateChannelList to qmp migration flow.

2023-10-09 Thread Het Gala
On 10/9/2023 7:59 PM, Fabiano Rosas wrote: Het Gala writes: On 10/4/2023 8:51 PM, Fabiano Rosas wrote: Het Gala writes: Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints for qmp migration. For current series

Re: [PATCH v11 09/10] migration: Implement MigrateChannelList to hmp migration flow.

2023-10-09 Thread Het Gala
On 10/9/2023 8:05 PM, Fabiano Rosas wrote: Het Gala writes: On 10/4/2023 8:55 PM, Fabiano Rosas wrote: Het Gala writes: Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints for hmp migration. Suggested-by: Aravind

Re: [PATCH v12 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-10-09 Thread Het Gala
On 10/10/2023 2:34 AM, Fabiano Rosas wrote: Het Gala writes: This is v12 patchset of modified 'migrate' and 'migrate-incoming' QAPI design for upstream review. Would like to thank all the maintainers that actively participated in the v11 patchset discussion and gave in

Re: [PATCH v12 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-10-10 Thread Het Gala
On 10/10/2023 7:56 PM, Fabiano Rosas wrote: Fabiano Rosas writes: Het Gala writes: On 10/10/2023 2:34 AM, Fabiano Rosas wrote: Het Gala writes: This is v12 patchset of modified 'migrate' and 'migrate-incoming' QAPI design for upstream review. Would like to thank

Re: [PATCH v12 09/10] migration: Implement MigrateChannelList to hmp migration flow.

2023-10-11 Thread Het Gala
On 10/10/2023 2:38 AM, Fabiano Rosas wrote: Het Gala writes: Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints for hmp migration. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration-hmp

[PATCH v13 06/10] migration: New migrate and migrate-incoming argument 'channels'

2023-10-12 Thread Het Gala
hannel' to make migration QAPIs future proof. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Acked-by: Markus Armbruster Reviewed-by: Daniel P. Berrangé --- migration/migration-hmp-cmds.c | 6 +- migration/migration.c | 56 +++-- qapi/migration.j

[PATCH v13 09/10] migration: Implement MigrateChannelList to hmp migration flow.

2023-10-12 Thread Het Gala
Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints for hmp migration. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration-hmp-cmds.c | 27 ++- migration/migration.c

[PATCH v13 02/10] migration: convert migration 'uri' into 'MigrateAddress'

2023-10-12 Thread Het Gala
This patch parses 'migrate' and 'migrate-incoming' QAPI's 'uri' string containing migration connection related information and stores them inside well defined 'MigrateAddress' struct. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- m

[PATCH v13 05/10] migration: convert exec backend to accept MigrateAddress.

2023-10-12 Thread Het Gala
Exec transport backend for 'migrate'/'migrate-incoming' QAPIs accept new wire protocol of MigrateAddress struct. It is achived by parsing 'uri' string and storing migration parameters required for exec connection into strList struct. Suggested-by: Aravind Retna

[PATCH v13 01/10] migration: New QAPI type 'MigrateAddress'

2023-10-12 Thread Het Gala
in later commits. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Juan Quintela Reviewed-by: Daniel P. Berrangé Acked-by: Markus Armbruster --- qapi/migration.json | 41 + 1 file changed, 41 insertions(+) diff --git a/qapi/mi

[PATCH v13 04/10] migration: convert rdma backend to accept MigrateAddress

2023-10-12 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Daniel P. Berrangé --- migration/migration.c | 8 migration/rdma.c | 33 +++-- migration/rdma.h | 6 -- 3 files changed, 19 insertions(+), 28 deletions(-) diff --git a/mig

[PATCH v13 07/10] migration: modify migration_channels_and_uri_compatible() for new QAPI syntax

2023-10-12 Thread Het Gala
eChannel' : migration_channels_and_uri_compatible() -> migration_channels_and_transport_compatible() passes object as argument and check for valid transport mechanism. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Daniel P. Berrangé --- migration/migration.c | 25 ++--- 1

[PATCH v13 08/10] migration: Implement MigrateChannelList to qmp migration flow.

2023-10-12 Thread Het Gala
-off-by: Het Gala --- migration/migration.c | 95 +++ 1 file changed, 52 insertions(+), 43 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index cf5a620c8e..7db1f3196e 100644 --- a/migration/migration.c +++ b/migration/migration.c

[PATCH v13 03/10] migration: convert socket backend to accept MigrateAddress

2023-10-12 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Daniel P. Berrangé --- migration/migration.c | 30 ++ migration/socket.c| 39 +-- migration/socket.h| 7 --- 3 files changed, 31 insertions(+), 45 deleti

[PATCH v13 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-10-12 Thread Het Gala
Transport-type Migration parameters based on transport type -- Het Gala (10): migration: New QAPI type 'MigrateAddress' migration: convert migration 'uri' into 'MigrateAddress&#

[PATCH v13 10/10] migration: modify test_multifd_tcp_none() to use new QAPI syntax.

2023-10-12 Thread Het Gala
modify multifd tcp common test to incorporate the new QAPI syntax defined. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration

Re: [PATCH v6 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-07-05 Thread Het Gala
On 05/07/23 4:51 pm, Markus Armbruster wrote: Het Gala writes: This patch introduces well defined MigrateAddress struct and its related child objects. The existing argument of 'migrate' and 'migrate-incoming' QAPI - 'uri' is of string type. The current

Re: [PATCH v6 2/9] migration: convert uri parameter into 'MigrateAddress' struct

2023-07-05 Thread Het Gala
On 05/07/23 4:59 pm, Markus Armbruster wrote: Drive-by comment... Het Gala writes: This patch parses 'migrate' and 'migrate-incoming' QAPI's 'uri' parameter with all the migration connection related information and stores them inside well defined 'M

[PATCH v7 5/9] migration: convert exec backend to accept MigrateAddress struct.

2023-07-10 Thread Het Gala
Exec transport backend for 'migrate'/'migrate-incoming' QAPIs accept new wire protocol of MigrateAddress struct. It is achived by parsing 'uri' string and storing migration parameters required for exec connection into strList struct. Suggested-by: Aravind Retna

[PATCH v7 0/9] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-07-10 Thread Het Gala
transport backends, different migration parameters are defined. (uri) string --> (channel) Channel-type Transport-type Migration parameters based on transport type -- Het Gala (9): migration:

[PATCH v7 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-07-10 Thread Het Gala
ters such as '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. Suggested-by: Aravind Retnakaran Signed-off-by: Het Ga

[PATCH v7 6/9] migration: modified migration QAPIs to accept 'channels' argument for migration

2023-07-10 Thread Het Gala
preferred choice of argument over 'MigrateChannel' and making migration QAPIs future proof. For current patchset series, have limited the size of the list to single element (single interface) as runtime check. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migrat

[PATCH v7 2/9] migration: convert uri parameter into 'MigrateAddress' struct

2023-07-10 Thread Het Gala
ed by Qemu. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/exec.c | 4 ++-- migration/exec.h | 4 migration/migration.c | 54 +++ 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/migration/exec.c b/

[PATCH v7 4/9] migration: convert rdma backend to accept MigrateAddress struct

2023-07-10 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 8 migration/rdma.c | 34 -- migration/rdma.h | 6 -- 3 files changed, 20 insertions(+), 28 deletions(-) diff --git a/migration/migration.c b/migratio

[PATCH v7 9/9] migration: adding test case for modified QAPI syntax

2023-07-10 Thread Het Gala
Adding multifd tcp common test case for modified QAPI syntax defined. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 45 1 file changed, 45 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest

[PATCH v7 8/9] migration: Introduced MigrateChannelList struct to migration code flow.

2023-07-10 Thread Het Gala
Integrated MigrateChannelList with all transport backends (socket, exec and rdma) for both source and destination migration code flow. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 77 --- migration/socket.c| 5

[PATCH v7 3/9] migration: convert socket backend to accept MigrateAddress struct

2023-07-10 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 32 +++- migration/socket.c| 34 +- migration/socket.h| 7 --- 3 files changed, 28 insertions(+), 45 deletions(-) diff --git a/migration/migra

[PATCH v7 7/9] migration: modify migration_channels_and_uri_compatible() to incorporate new migration QAPI syntax

2023-07-10 Thread Het Gala
ct conversion, migration_channels_and_uri_compatible() -> migration_channels_and_transport_compatible() passes object as argument and checks for valid transport mechanism. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 25 ++--- 1 file changed, 14 i

Re: [PATCH v7 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-07-13 Thread Het Gala
Ack. Thanks for the suggestion Markus. Het Gala writes: This patch introduces well defined MigrateAddress struct and its related child objects. The existing argument of 'migrate' and 'migrate-incoming' QAPI - 'uri' is of string type. The current migration flow foll

[PATCH v8 1/9] migration: New QAPI type 'MigrateAddress'

2023-07-13 Thread Het Gala
in later commits. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Reviewed-by: Juan Quintela Reviewed-by: Daniel P. Berrangé Acked-by: Markus Armbruster --- qapi/migration.json | 41 + 1 file changed, 41 insertions(+) diff --git a/qapi/mi

[PATCH v8 5/9] migration: convert exec backend to accept MigrateAddress.

2023-07-13 Thread Het Gala
Exec transport backend for 'migrate'/'migrate-incoming' QAPIs accept new wire protocol of MigrateAddress struct. It is achived by parsing 'uri' string and storing migration parameters required for exec connection into strList struct. Suggested-by: Aravind Retna

[PATCH v8 7/9] migration: modify migration_channels_and_uri_compatible() for new QAPI syntax

2023-07-13 Thread Het Gala
eChannel' : migration_channels_and_uri_compatible() -> migration_channels_and_transport_compatible() passes object as argument and check for valid transport mechanism. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletion

[PATCH v8 2/9] migration: convert migration 'uri' into 'MigrateAddress'

2023-07-13 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/exec.c | 4 ++-- migration/exec.h | 4 migration/migration.c | 54 +++ 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/migration/exec.c b/migration/exe

[PATCH v8 9/9] migration: Add test case for modified QAPI syntax

2023-07-13 Thread Het Gala
Add multifd tcp common test case for new QAPI syntax defined. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 45 1 file changed, 45 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration

[PATCH v8 8/9] migration: Implement MigrateChannelList to migration flow.

2023-07-13 Thread Het Gala
Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 77 --- migration/socket.c| 5 ++- 2

[PATCH v8 4/9] migration: convert rdma backend to accept MigrateAddress

2023-07-13 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 8 migration/rdma.c | 34 -- migration/rdma.h | 6 -- 3 files changed, 20 insertions(+), 28 deletions(-) diff --git a/migration/migration.c b/migratio

[PATCH v8 0/9] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-07-13 Thread Het Gala
on basis of transport backends, different migration parameters are defined. (uri) string --> (channel) Channel-type Transport-type Migration parameters based on transport type --

[PATCH v8 6/9] migration: New migrate and migrate-incoming argument 'channels'

2023-07-13 Thread Het Gala
hannel' to make migration QAPIs future proof. For current series, limit the size of MigrateChannelList to single element (single interface) as runtime check. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Acked-by: Markus Armbruster --- migration/migration-hmp-cmds.c |

[PATCH v8 3/9] migration: convert socket backend to accept MigrateAddress

2023-07-13 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 32 +++- migration/socket.c| 34 +- migration/socket.h| 7 --- 3 files changed, 28 insertions(+), 45 deletions(-) diff --git a/migration/migra

Re: [PATCH v6 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-06-28 Thread Het Gala
On 13/06/23 10:58 am, Het Gala wrote: On 06/06/23 3:45 pm, Het Gala wrote: This patch introduces well defined MigrateAddress struct and its related child objects. The existing argument of 'migrate' and 'migrate-incoming' QAPI - 'uri' is of string type. The

Re: [PATCH v6 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-06-12 Thread Het Gala
On 06/06/23 3:45 pm, Het Gala wrote: This patch introduces well defined MigrateAddress struct and its related child objects. The existing argument of 'migrate' and 'migrate-incoming' QAPI - 'uri' is of string type. The current migration flow follows double

Re: [PATCH v5 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-06-01 Thread Het Gala
On 30/05/23 5:40 pm, Daniel P. Berrangé wrote: On Tue, May 30, 2023 at 01:02:27PM +0530, Het Gala wrote: On 30/05/23 12:28 pm, Markus Armbruster wrote: Het Gala writes: [...] +## +{ 'enum': 'MigrateTransport', + 'data': ['socket', '

[PATCH v6 3/9] migration: convert socket backend to accept MigrateAddress struct

2023-06-06 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 32 +++- migration/socket.c| 34 +- migration/socket.h| 7 --- 3 files changed, 28 insertions(+), 45 deletions(-) diff --git a/migration/migra

[PATCH v6 8/9] migration: Introduced MigrateChannelList struct to migration code flow.

2023-06-06 Thread Het Gala
Integrated MigrateChannelList with all transport backends (socket, exec and rdma) for both source and destination migration code flow. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 77 --- migration/socket.c| 5

[PATCH v6 4/9] migration: convert rdma backend to accept MigrateAddress struct

2023-06-06 Thread Het Gala
ggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 8 migration/rdma.c | 34 -- migration/rdma.h | 6 -- 3 files changed, 20 insertions(+), 28 deletions(-) diff --git a/migration/migration.c b/migratio

[PATCH v6 1/9] migration: introduced 'MigrateAddress' in QAPI for migration wire protocol.

2023-06-06 Thread Het Gala
ters such as '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. Suggested-by: Aravind Retnakaran Signed-off-by: Het Ga

[PATCH v6 9/9] migration: adding test case for modified QAPI syntax

2023-06-06 Thread Het Gala
Adding multifd tcp common test case for modified QAPI syntax defined. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 45 1 file changed, 45 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest

[PATCH v6 7/9] migration: modify migration_channels_and_uri_compatible() to incorporate newer migration QAPI syntax

2023-06-06 Thread Het Gala
ct conversion, migration_channels_and_uri_compatible() -> migration_channels_and_transport_compatible() passes object as argument and checks for valid transport mechanism. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migration.c | 25 ++--- 1 file changed, 14 i

[PATCH v6 2/9] migration: convert uri parameter into 'MigrateAddress' struct

2023-06-06 Thread Het Gala
ed by Qemu. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/exec.c | 4 ++-- migration/exec.h | 4 migration/migration.c | 54 +++ 3 files changed, 60 insertions(+), 2 deletions(-) diff --git a/migration/exec.c b/

[PATCH v6 6/9] migration: modified migration QAPIs to accept 'channels' argument for migration

2023-06-06 Thread Het Gala
preferred choice of argument over 'MigrateChannel' and making migration QAPIs future proof. For current patchset series, have limited the size of the list to single element (single interface) as runtime check. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala --- migration/migrat

[PATCH v6 0/9] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-06-06 Thread Het Gala
ion for the various transport backends (like socket, exec and rdma), and on basis of transport backends, different migration parameters are defined. (uri) string --> (channel) Channel-type Transport-type Migration parameters based on

[PATCH v6 5/9] migration: convert exec backend to accept MigrateAddress struct.

2023-06-06 Thread Het Gala
Exec transport backend for 'migrate'/'migrate-incoming' QAPIs accept new wire protocol of MigrateAddress struct. It is achived by parsing 'uri' string and storing migration parameters required for exec connection into strList struct. Suggested-by: Aravind Retna

Re: [PATCH v6 6/9] migration: modified migration QAPIs to accept 'channels' argument for migration

2023-06-08 Thread Het Gala
On 06/06/23 3:45 pm, Het Gala wrote: MigrateChannelList allows to connect accross multiple interfaces. Added MigrateChannelList struct as argument to migration QAPIs. Future patchset series plans to include multiple MigrateChannels for multiple interfaces to be connected. That is the reason

Re: [PATCH v2 3/3] qapi: allow unions to contain further unions

2023-03-06 Thread Het Gala
t_str(qdict, "type"), ==, "value-a"); +g_assert_cmpstr(qdict_get_str(qdict, "type-a"), ==, "value-a1"); + g_assert_cmpint(qdict_get_int(qdict, "integer"), ==, 42); +g_assert_cmpstr(qdict_get_str(qdict, "name"), ==, "fish"); + +qapi_free_TestUnionInUnion(tmp); + + +visitor_reset(data); +tmp = g_new0(TestUnionInUnion, 1); +tmp->type = TEST_UNION_ENUM_VALUE_A; +tmp->u.value_a.type_a = TEST_UNION_ENUMA_VALUE_A2; +tmp->u.value_a.u.value_a2.integer = 1729; +tmp->u.value_a.u.value_a2.size = 87539319; + +visit_type_TestUnionInUnion(data->ov, NULL, &tmp, &error_abort); +qdict = qobject_to(QDict, visitor_get(data)); +g_assert(qdict); +g_assert_cmpstr(qdict_get_str(qdict, "type"), ==, "value-a"); +g_assert_cmpstr(qdict_get_str(qdict, "type-a"), ==, "value-a2"); +g_assert_cmpint(qdict_get_int(qdict, "integer"), ==, 1729); +g_assert_cmpint(qdict_get_int(qdict, "size"), ==, 87539319); + +qapi_free_TestUnionInUnion(tmp); + + +visitor_reset(data); +tmp = g_new0(TestUnionInUnion, 1); +tmp->type = TEST_UNION_ENUM_VALUE_B; +tmp->u.value_b.integer = 1729; +tmp->u.value_b.onoff = true; + +visit_type_TestUnionInUnion(data->ov, NULL, &tmp, &error_abort); +qdict = qobject_to(QDict, visitor_get(data)); +g_assert(qdict); +g_assert_cmpstr(qdict_get_str(qdict, "type"), ==, "value-b"); +g_assert_cmpint(qdict_get_int(qdict, "integer"), ==, 1729); +g_assert_cmpint(qdict_get_bool(qdict, "onoff"), ==, true); + +qapi_free_TestUnionInUnion(tmp); +} + static void test_visitor_out_alternate(TestOutputVisitorData *data, const void *unused) { @@ -586,6 +642,8 @@ int main(int argc, char **argv) &out_visitor_data, test_visitor_out_list_qapi_free); output_visitor_test_add("/visitor/output/union-flat", &out_visitor_data, test_visitor_out_union_flat); +output_visitor_test_add("/visitor/output/union-in-union", +&out_visitor_data, test_visitor_out_union_in_union); output_visitor_test_add("/visitor/output/alternate", &out_visitor_data, test_visitor_out_alternate); output_visitor_test_add("/visitor/output/null", The changes look good to me. I have tried to built migrate QAPI changes on top of Daniel's v1 changes, and it was successful. Once Markus and other maintainers approves this patchset, I can post v4 version of 'migrate' qapi changes on top of this change. Looking forward for replies on this patchset :) Regards, Het Gala

[PATCH] 'channel' and 'addr' in qmp_migrate() are not auto-freed. migrate_uri_parse() allocates memory which is returned to 'channel', which is leaked because there is no code for freeing 'channel' or

2023-11-27 Thread Het Gala
Fixes: 5994024f ("migration: Implement MigrateChannelList to qmp migration flow") Signed-off-by: Het Gala --- migration/migration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index 28a34c9068..29efb51b62 100644 --- a/migration/m

[PATCH v2] migration: free 'channel' and 'addr' after their use in migration.c

2023-11-27 Thread Het Gala
channel to avoid memory leak. 'addr' does shallow copying of channel->addr, hence free 'channel' itself and deep free contents of 'addr' Fixes: 5994024f ("migration: Implement MigrateChannelList to qmp migration flow") Signed-off-by: Het Gala --- migrat

Re: [PATCH] 'channel' and 'addr' in qmp_migrate() are not auto-freed. migrate_uri_parse() allocates memory which is returned to 'channel', which is leaked because there is no code for freeing 'channel

2023-11-28 Thread Het Gala
returned to 'channel', which is leaked because there is no code for freeing 'channel' or 'addr'. So, free addr and channel to avoid memory leak. 'addr' does shallow copying of channel->addr, hence free 'channel' itself and deep fr

Re: [PATCH] 'channel' and 'addr' in qmp_migrate() are not auto-freed. migrate_uri_parse() allocates memory which is returned to 'channel', which is leaked because there is no code for freeing 'channel

2023-11-28 Thread Het Gala
On 28/11/23 3:29 pm, Markus Armbruster wrote: Het Gala writes: On 28/11/23 12:46 pm, Markus Armbruster wrote: Your commit message is all in one line. You need to format it like migration: Plug memory leak 'channel' and 'addr' in qmp_migrate(

[PATCH v3] migration: free 'channel' after its use in migration.c

2023-11-29 Thread Het Gala
case where 'channels' is empty and uri parsing is required. Fixes: 5994024f ("migration: Implement MigrateChannelList to qmp migration flow") Signed-off-by: Het Gala Suggested-by: Markus Armbruster --- migration/migration.c | 12 ++-- 1 file changed, 6 insertions(+),

Re: [PATCH v3] migration: free 'channel' after its use in migration.c

2023-11-29 Thread Het Gala
On 29/11/23 6:21 pm, Markus Armbruster wrote: I'ld like to suggest a clearer subject: migration: Plug memory leak with migration URIs Ack. Will update the commit message Het Gala writes: 'channel' in qmp_migrate() and qmp_migrate_incoming() is not auto-freed. mi

[PATCH v4] migration: Plug memory leak with migration URIs

2023-11-29 Thread Het Gala
994024f ("migration: Implement MigrateChannelList to qmp migration flow") Signed-off-by: Het Gala Suggested-by: Markus Armbruster --- migration/migration.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/migration/migration.c b/migration/migration.c i

Re: [PATCH v3] migration: free 'saddr' since be no longer used

2023-11-30 Thread Het Gala
reviewed by Markus already. ref - https://lists.gnu.org/archive/html/qemu-devel/2023-11/msg05948.htm. TIA ! Regards, Het Gala

[PATCH] migration: Simplify initial conditionals in migration for better readability

2023-12-05 Thread Het Gala
The inital conditional statements in qmp migration functions is harder to understand than necessary. It is better to get all errors out of the way in the beginning itself to have better readability and error handling. Signed-off-by: Het Gala Suggested-by: Markus Armbruster --- migration

Re: [PATCH] migration: Simplify initial conditionals in migration for better readability

2023-12-05 Thread Het Gala
On 05/12/23 1:30 pm, Het Gala wrote: The inital conditional statements in qmp migration functions is harder to understand than necessary. It is better to get all errors out of the way in the beginning itself to have better readability and error handling. Signed-off-by: Het Gala Suggested-by

Re: QEMU developers fortnightly conference call for agenda for 2023-12-12

2023-12-05 Thread Het Gala
modify the architecture in near future. Thanks, Het Gala On 05/12/23 7:17 pm, Juan Quintela wrote: QEMU developers fortnightly conference call Hi If you have any topics for the last qemu conference call of the year, feel free to answer to this email. Later, Juan. QEMU developers fortni

Re: [PATCH] migration: Simplify initial conditionals in migration for better readability

2024-01-03 Thread Het Gala
Ping. In-case this patch has been missed out. Waiting for other maintainers to respond. Thanks! On 11/12/23 6:43 pm, Het Gala wrote: Ping? Waiting for other maintainers to respond on this patch On 05/12/23 6:28 pm, Fabiano Rosas wrote: Het Gala writes: The inital conditional statements in

Re: [PATCH] migration: Simplify initial conditionals in migration for better readability

2023-12-11 Thread Het Gala
Ping? Waiting for other maintainers to respond on this patch On 05/12/23 6:28 pm, Fabiano Rosas wrote: Het Gala writes: The inital conditional statements in qmp migration functions is harder to understand than necessary. It is better to get all errors out of the way in the beginning itself

Re: [PATCH v13 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-10-18 Thread Het Gala
file based migration in these patches or as you said eariler, you will introduce those patches on top of my patches. Please let me know. On 12/10/23 8:40 pm, Het Gala wrote: This is v13 patchset of modified 'migrate' and 'migrate-incoming' QAPI design for upstream review. Would lik

Re: [PATCH v13 00/10] migration: Modify 'migrate' and 'migrate-incoming' QAPI commands for migration

2023-10-18 Thread Het Gala
On 18/10/23 7:58 pm, Fabiano Rosas wrote: Het Gala writes: Fabiano, would your below commits impact this patchset 'make check' tests ? Because you have added tests for file based migration, which is still not included in this patchset. AFAICS, the tests shouldn't break

Re: [PATCH v15 13/14] migration: Implement MigrateChannelList to hmp migration flow.

2023-10-31 Thread Het Gala
On 31/10/23 11:12 pm, Juan Quintela wrote: Fabiano Rosas wrote: From: Het Gala Integrate MigrateChannelList with all transport backends (socket, exec and rdma) for both src and dest migration endpoints for hmp migration. Suggested-by: Aravind Retnakaran Signed-off-by: Het Gala Signed

Re: [PATCH v15 13/14] migration: Implement MigrateChannelList to hmp migration flow.

2023-10-31 Thread Het Gala
On 01/11/23 12:25 am, Juan Quintela wrote: I intrehated al parches until this forma next pull. I should just add the last 2 patches as individual ones, is that what you mean ? On Tue, Oct 31, 2023, 19:51 Het Gala wrote: On 31/10/23 11:12 pm, Juan Quintela wrote: > Fabiano Ro

<    1   2   3   4