Re: [PATCH 1/4] Revert "migration: modify test_multifd_tcp_none() to use new QAPI syntax"

2024-04-11 Thread Het Gala
On 11/04/24 7:56 pm, Peter Xu wrote: !---| CAUTION: External Email |---! On Thu, Apr 11, 2024 at 07:45:21PM +0530, Het Gala wrote: On 10/04/24 8:23 pm, Peter Xu

Re: [PATCH 1/4] Revert "migration: modify test_multifd_tcp_none() to use new QAPI syntax"

2024-04-11 Thread Het Gala
On 10/04/24 8:23 pm, Peter Xu wrote: !---| CAUTION: External Email |---! On Wed, Apr 10, 2024 at 10:04:33AM -0300, Fabiano Rosas wrote: Het Gala writes

Re: [PATCH 4/4] tests/qtest/migration: Add postcopy migration qtests to use 'channels' argument instead of uri

2024-04-11 Thread Het Gala
On 10/04/24 6:45 pm, Fabiano Rosas wrote: !---| CAUTION: External Email |---! Het Gala writes: Add qtests to perform postcopy live migration by having list

Re: [PATCH 3/4] tests/qtest/migration: Add channels parameter in migrate_incoming_qmp

2024-04-11 Thread Het Gala
On 10/04/24 6:44 pm, Fabiano Rosas wrote: !---| CAUTION: External Email |---! Het Gala writes: Alter migrate_incoming_qmp() to allow both uri and channels

Re: [PATCH 1/4] Revert "migration: modify test_multifd_tcp_none() to use new QAPI syntax"

2024-04-11 Thread Het Gala
On 10/04/24 6:34 pm, Fabiano Rosas wrote: !---| CAUTION: External Email |---! Het Gala writes: This reverts commit 8e3766eefbb4036cbc280c1f1a0d28537929f7fb

Re: [PATCH] tests/qtest: Standardize qtest function caller strings.

2024-04-10 Thread Het Gala
On 05/04/24 7:58 pm, Fabiano Rosas wrote: !---| CAUTION: External Email |---! Het Gala writes: On 27/03/24 2:37 am, Fabiano Rosas wrote: Het Gala writes

[PATCH 3/4] tests/qtest/migration: Add channels parameter in migrate_incoming_qmp

2024-04-10 Thread Het Gala
Alter migrate_incoming_qmp() to allow both uri and channels independently. For channels, convert string to a QDict. Signed-off-by: Het Gala --- tests/qtest/migration-helpers.c | 13 +++-- tests/qtest/migration-helpers.h | 4 ++-- tests/qtest/migration-test.c | 12

[PATCH 0/4] tests/qtest/migration: Add postcopy qtests for introducing 'channels' argument with new QAPI syntax

2024-04-10 Thread Het Gala
'migrate-incoming' QAPI with the new 'channels' syntax. Patch 2-3: - Introduce channels arg to migrate_incoming_qmp Patch 4: --- Introduce postcopy qtests with new QAPI syntax Het Gala (4): Revert "migration: modify test_multifd_tcp_none() to use new QAPI syntax" t

[PATCH 1/4] Revert "migration: modify test_multifd_tcp_none() to use new QAPI syntax"

2024-04-10 Thread Het Gala
syntax since the migration qtest framework lacked any logic for introducing 'channels' argument. Now that the qtest framework has logic to introduce uri and channel argument separately, we can remove this temporary change. Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 7 +-- 1 file

[PATCH 2/4] tests/qtest/migration: Replace 'migrate-incoming' qtest_qmp_assert_success with migrate_incoming_qmp

2024-04-10 Thread Het Gala
Already have a migrate_incoming_qmp helper function to initiate 'migrate-incoming' QMP command with some additional checks. Replace 'migrate-incoming' qtest_qmp_assert_success command with calling migrate_incoming_qmp helper function for postcopy qtests. Signed-off-by: Het Gala --- tests/qtest

[PATCH 4/4] tests/qtest/migration: Add postcopy migration qtests to use 'channels' argument instead of uri

2024-04-10 Thread Het Gala
Add qtests to perform postcopy live migration by having list of 'channels' argument as the starting point instead of uri string. (Note: length of the list is restricted to 1 for now) Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 38 ++-- 1 file

[PATCH v2 3/3] fixup! tests/qtest/migration: Add multifd_tcp_plain test using list of channels instead of uri

2024-04-09 Thread Het Gala
Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 584d7c496f..5d6d8cd634 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c

[PATCH v2 2/3] fixup! tests/qtest/migration: Add migrate_set_ports into migrate_qmp to update migration port value

2024-04-09 Thread Het Gala
Signed-off-by: Het Gala --- tests/qtest/migration-helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c index b2a90469fb..3b72cad6c1 100644 --- a/tests/qtest/migration-helpers.c +++ b/tests/qtest

[PATCH v2 0/3] qtest/migration: Fixes around multifd_tcp_channels_none migration qtest

2024-04-09 Thread Het Gala
els' arg. 2. use 'git commit --fixup' to improve commit message as well as to inform on which commit is the fix meant to be. Het Gala (3): fixup! tests/qtest/migration: Add negative tests to validate migration QAPIs fixup! tests/qtest/migration: Add migrate_set_ports into migrate_

[PATCH v2 1/3] fixup! tests/qtest/migration: Add negative tests to validate migration QAPIs

2024-04-09 Thread Het Gala
Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index d03a655f83..584d7c496f 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c

Re: [PATCH 2/2] Call args->connect_channels to actually test multifd_tcp_channels_none qtest

2024-04-08 Thread Het Gala
On 08/04/24 9:10 pm, Peter Xu wrote: !---| CAUTION: External Email |---! On Sun, Apr 07, 2024 at 01:21:25PM +, Het Gala wrote: Earlier, without args

Re: [PATCH 1/2] Fix typo to allow migrate_qmp_fail command with 'channels' argument

2024-04-08 Thread Het Gala
On 08/04/24 9:05 pm, Peter Xu wrote: !---| CAUTION: External Email |---! Hey, Het, On Sun, Apr 07, 2024 at 01:21:24PM +, Het Gala wrote: Fixes: (tests/qtest

[PATCH 1/2] Fix typo to allow migrate_qmp_fail command with 'channels' argument

2024-04-07 Thread Het Gala
Fixes: (tests/qtest/migration: Add negative tests to validate migration QAPIs) Signed-off-by: Het Gala --- tests/qtest/migration-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index d03a655f83..584d7c496f

[PATCH 0/2] Fix: qtest/migration: Improve multifd_tcp_channels_none test

2024-04-07 Thread Het Gala
in migration. Fix multifd_tcp_channels_none qtest to actually utilise 'channels' arg in migrate QAPIs This patchset is built on top of (tests/qtest/migration: Add tests for introducing 'channels' argument in migrate QAPIs) Het Gala (2): Fix typo to allow migrate_qmp_fail command with 'channels

[PATCH 2/2] Call args->connect_channels to actually test multifd_tcp_channels_none qtest

2024-04-07 Thread Het Gala
orrect migration ports. Fix that. Fixes: (tests/qtest/migration: Add multifd_tcp_plain test using list of channels instead of uri) Signed-off-by: Het Gala --- tests/qtest/migration-helpers.c | 2 -- tests/qtest/migration-test.c| 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)

Re: [PATCH] tests/qtest: Standardize qtest function caller strings.

2024-04-02 Thread Het Gala
ping ! On 27/03/24 4:18 pm, Het Gala wrote: On 27/03/24 2:37 am, Fabiano Rosas wrote: Het Gala writes: Some comments, mostly just thinking out loud... For --> migrate // //O:/... For --> validate ///O:/O:/ /O:/O:/... Do we need an optional 'capability' element? I'm not su

Re: [PATCH] tests/qtest: Standardize qtest function caller strings.

2024-03-27 Thread Het Gala
On 27/03/24 2:37 am, Fabiano Rosas wrote: Het Gala writes: Some comments, mostly just thinking out loud... For --> migrate // //O:/... For --> validate ///O:/O:/ /O:/O:/... Do we need an optional 'capability' element? I'm not sure how practical is to leave that as 'others', b

Re: [PATCH] tests/qtest: Standardize qtest function caller strings.

2024-03-26 Thread Het Gala
, will comply  with that once, we are on a consensus with the design) On 27/03/24 1:08 am, Het Gala wrote: For --> migrate // //O:/... For --> validate ///O:/O:/ /O:/O:/... test-type:: migrate | validate migration-mode a. migrate --> :: precopy | postcopy | mul

[PATCH] tests/qtest: Standardize qtest function caller strings.

2024-03-26 Thread Het Gala
y that needs to be addressed. Can be multiple (more than one applicable, separated by using '-' in between) O: optional Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 143 ++- 1 file changed, 72 insertions(+), 71 deleti

Re: [PATCH 1/2] tests/qtest/migration: Ignore if socket-address is missing to avoid crash below

2024-03-20 Thread Het Gala
On 20/03/24 6:49 pm, Fabiano Rosas wrote: Het Gala writes: On 20/03/24 3:27 am, Peter Xu wrote: On Tue, Mar 19, 2024 at 08:48:39PM +, Het Gala wrote: 'object' can return NULL if there is no socket-address, such as with a file migration. Then the visitor code below fails and the test

Re: [PATCH 1/2] tests/qtest/migration: Ignore if socket-address is missing to avoid crash below

2024-03-19 Thread Het Gala
On 20/03/24 3:27 am, Peter Xu wrote: On Tue, Mar 19, 2024 at 08:48:39PM +, Het Gala wrote: 'object' can return NULL if there is no socket-address, such as with a file migration. Then the visitor code below fails and the test crashes. Ignore and return NULL when socket-address is missing

Re: [PATCH v7 3/8] tests/qtest/migration: Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-19 Thread Het Gala
On 20/03/24 12:33 am, Fabiano Rosas wrote: Het Gala writes: On 18/03/24 7:46 pm, Fabiano Rosas wrote: Het Gala writes: On 15/03/24 6:28 pm, Fabiano Rosas wrote: Het Galawrites: Refactor migrate_get_socket_address to internally utilize 'socket-address' parameter, reducing

Re: [PATCH 1/2] tests/qtest/migration: Ignore if socket-address is missing to avoid crash below

2024-03-19 Thread Het Gala
FYI: This 2 patches are rebased on top of another (tests/qtest/migration: Add tests for introducing 'channels' argument in migrate QAPIs) series. Can find the build for both the patches here: https://gitlab.com/galahet/Qemu/-/pipelines/1219841944 On 20/03/24 2:18 am, Het Gala wrote: 'object

[PATCH 2/2] tests/qtest/migration: Fix typo for vsock in SocketAddress_to_str

2024-03-19 Thread Het Gala
Signed-off-by: Het Gala --- tests/qtest/migration-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c index fb7156f09a..651c6c555a 100644 --- a/tests/qtest/migration-helpers.c +++ b/tests/qtest/migration

[PATCH 1/2] tests/qtest/migration: Ignore if socket-address is missing to avoid crash below

2024-03-19 Thread Het Gala
Signed-off-by: Het Gala --- tests/qtest/migration-helpers.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c index b2a90469fb..fb7156f09a 100644 --- a/tests/qtest/migration-helpers.c +++ b/tests/qtest/migration-helpers.c

Re: [PATCH v7 3/8] tests/qtest/migration: Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-19 Thread Het Gala
On 18/03/24 7:46 pm, Fabiano Rosas wrote: Het Gala writes: On 15/03/24 6:28 pm, Fabiano Rosas wrote: Het Gala writes: Refactor migrate_get_socket_address to internally utilize 'socket-address' parameter, reducing redundancy in the function definition. migrate_get_socket_address

Re: [PATCH v7 3/8] tests/qtest/migration: Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-15 Thread Het Gala
On 15/03/24 6:28 pm, Fabiano Rosas wrote: Het Gala writes: Refactor migrate_get_socket_address to internally utilize 'socket-address' parameter, reducing redundancy in the function definition. migrate_get_socket_address implicitly converts SocketAddress into str. Move

Re: [PATCH v7 0/8] tests/qtest/migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-12 Thread Het Gala
Can find the passed build here: https://gitlab.com/galahet/Qemu/-/pipelines/1210931136 On 13/03/24 1:56 am, Het Gala wrote: With recent migrate QAPI changes, enabling the direct use of the 'channels' argument to avoid redundant URI string parsing is achieved. To ensure backward compatibility

[PATCH v7 0/8] tests/qtest/migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-12 Thread Het Gala
tring to MigrationChannelList 5. move calls for migrate_get_socket_address inside migrate_qmp so that migrate_set_ports can replace the QAPI's port with correct value. Het Gala (8): tests/qtest/migration: Add 'to' object into migrate_qmp() tests/qtest/migration: Replace connect_uri and move

[PATCH v7 7/8] tests/qtest/migration: Add multifd_tcp_plain test using list of channels instead of uri

2024-03-12 Thread Het Gala
Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point instead of simple uri string. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests/qtest/migration-test.c | 30

[PATCH v7 3/8] tests/qtest/migration: Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-12 Thread Het Gala
string instead. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests/qtest/migration-helpers.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c

[PATCH v7 2/8] tests/qtest/migration: Replace connect_uri and move migrate_get_socket_address inside migrate_qmp

2024-03-12 Thread Het Gala
Move the calls to migrate_get_socket_address() into migrate_qmp(). Get rid of connect_uri and replace it with args->connect_uri only because 'to' object will help to generate connect_uri with the correct port number. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Ro

[PATCH v7 1/8] tests/qtest/migration: Add 'to' object into migrate_qmp()

2024-03-12 Thread Het Gala
Add the 'to' object into migrate_qmp(), so we can use migrate_get_socket_address() inside migrate_qmp() to get the port value. This is not applied to other migrate_qmp* because they don't need the port. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests

[PATCH v7 6/8] tests/qtest/migration: Add channels parameter in migrate_qmp

2024-03-12 Thread Het Gala
Alter migrate_qmp() to allow use of channels parameter, but only fill the uri with correct port number if there are no channels. Here we don't want to allow the wrong cases of having both or none (ex: migrate_qmp_fail). Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano

[PATCH v7 5/8] tests/qtest/migration: Add migrate_set_ports into migrate_qmp to update migration port value

2024-03-12 Thread Het Gala
migrate_get_connect_qdict gets qdict with the dst QEMU parameters. migrate_set_ports() from list of channels reads each QDict for port, and fills the port with correct value in case it was 0 in the test. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests

[PATCH v7 4/8] tests/qtest/migration: Add channels parameter in migrate_qmp_fail

2024-03-12 Thread Het Gala
Alter migrate_qmp_fail() to allow both uri and channels independently. For channels, convert string to a Dict. No dealing with migrate_get_socket_address() here because we will fail before starting the migration anyway. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano

[PATCH v7 8/8] tests/qtest/migration: Add negative tests to validate migration QAPIs

2024-03-12 Thread Het Gala
Migration QAPI arguments - uri and channels are mutually exhaustive. Add negative validation tests, one with both arguments present and one with none present. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests/qtest/migration-test.c | 55

Re: [PATCH v6 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-12 Thread Het Gala
rule yet.. but any such prefix is still helpful. Thanks, Yes, sure Peter. Let me rebase it to latest master and also share the latest passed build link. Will add "tests/qtest/migration" prefix to all the commit message headers. Regards, Het Gala

[PATCH v6 4/8] Add channels parameter in migrate_qmp_fail

2024-03-12 Thread Het Gala
Alter migrate_qmp_fail() to allow both uri and channels independently. For channels, convert string to a Dict. No dealing with migrate_get_socket_address() here because we will fail before starting the migration anyway. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v6 6/8] Add channels parameter in migrate_qmp

2024-03-12 Thread Het Gala
Alter migrate_qmp() to allow use of channels parameter, but only fill the uri with correct port number if there are no channels. Here we don't want to allow the wrong cases of having both or none (ex: migrate_qmp_fail). Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v6 3/8] Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-12 Thread Het Gala
string instead. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c index 3e8c19c4de

[PATCH v6 2/8] Replace connect_uri and move migrate_get_socket_address inside migrate_qmp

2024-03-12 Thread Het Gala
Move the calls to migrate_get_socket_address() into migrate_qmp(). Get rid of connect_uri and replace it with args->connect_uri only because 'to' object will help to generate connect_uri with the correct port number. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migrat

[PATCH v6 1/8] Add 'to' object into migrate_qmp()

2024-03-12 Thread Het Gala
Add the 'to' object into migrate_qmp(), so we can use migrate_get_socket_address() inside migrate_qmp() to get the port value. This is not applied to other migrate_qmp* because they don't need the port. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests

[PATCH v6 5/8] Add migrate_set_ports into migrate_qmp to update migration port value

2024-03-12 Thread Het Gala
migrate_get_connect_qdict gets qdict with the dst QEMU parameters. migrate_set_ports() from list of channels reads each QDict for port, and fills the port with correct value in case it was 0 in the test. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c

[PATCH v6 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-12 Thread Het Gala
port with correct value. Het Gala (8): Add 'to' object into migrate_qmp() Replace connect_uri and move migrate_get_socket_address inside migrate_qmp Replace migrate_get_connect_uri inplace of migrate_get_socket_address Add channels parameter in migrate_qmp_fail Add migrate_set_port

[PATCH v6 7/8] Add multifd_tcp_plain test using list of channels instead of uri

2024-03-12 Thread Het Gala
Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point instead of simple uri string. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 30 +++--- 1 file

[PATCH v6 8/8] Add negative tests to validate migration QAPIs

2024-03-12 Thread Het Gala
Migration QAPI arguments - uri and channels are mutually exhaustive. Add negative validation tests, one with both arguments present and one with none present. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 55 +++- 1 file

Re: [PATCH v5 7/8] Add multifd_tcp_plain test using list of channels instead of uri

2024-03-12 Thread Het Gala
ent, migrate_qmp still makes live migration succeed. Sending out a new patchset series - v6. Can directly review v6 patchset series. On 12/03/24 3:23 am, Het Gala wrote: Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point inst

Re: [PATCH v5 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-11 Thread Het Gala
Can also check the passed build at https://gitlab.com/galahet/Qemu/-/pipelines/1209497470 On 12/03/24 3:23 am, Het Gala wrote: With recent migrate QAPI changes, enabling the direct use of the 'channels' argument to avoid redundant URI string parsing is achieved. v4->v5 Change

Re: [PATCH v4 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-11 Thread Het Gala
On 12/03/24 3:08 am, Peter Xu wrote: On Tue, Mar 12, 2024 at 03:01:51AM +0530, Het Gala wrote: On 12/03/24 2:55 am, Peter Xu wrote: On Sat, Mar 09, 2024 at 01:11:45PM +0530, Het Gala wrote: Can find the reference to the githab pipeline (before patchset) : https://urldefense.proofpoint.com/v2

[PATCH v5 1/8] Add 'to' object into migrate_qmp()

2024-03-11 Thread Het Gala
Add the 'to' object into migrate_qmp(), so we can use migrate_get_socket_address() inside migrate_qmp() to get the port value. This is not applied to other migrate_qmp* because they don't need the port. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests

[PATCH v5 5/8] Add migrate_set_ports into migrate_qmp to update migration port value

2024-03-11 Thread Het Gala
migrate_get_connect_qdict gets qdict with the dst QEMU parameters. migrate_set_ports() from list of channels reads each QDict for port, and fills the port with correct value in case it was 0 in the test. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c

[PATCH v5 7/8] Add multifd_tcp_plain test using list of channels instead of uri

2024-03-11 Thread Het Gala
Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point instead of simple uri string. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 30 +++--- 1 file

[PATCH v5 8/8] Add negative tests to validate migration QAPIs

2024-03-11 Thread Het Gala
Migration QAPI arguments - uri and channels are mutually exhaustive. Add negative validation tests, one with both arguments present and one with none present. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests/qtest/migration-test.c | 53

[PATCH v5 2/8] Replace connect_uri and move migrate_get_socket_address inside migrate_qmp

2024-03-11 Thread Het Gala
Move the calls to migrate_get_socket_address() into migrate_qmp(). Get rid of connect_uri and replace it with args->connect_uri only because 'to' object will help to generate connect_uri with the correct port number. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migrat

[PATCH v5 6/8] Add channels parameter in migrate_qmp

2024-03-11 Thread Het Gala
Alter migrate_qmp() to allow use of channels parameter, but only fill the uri with correct port number if there are no channels. Here we don't want to allow the wrong cases of having both or none (ex: migrate_qmp_fail). Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v5 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-11 Thread Het Gala
dress inside migrate_qmp so that migrate_set_ports can replace the QAPI's port with correct value. Het Gala (8): Add 'to' object into migrate_qmp() Replace connect_uri and move migrate_get_socket_address inside migrate_qmp Replace migrate_get_connect_uri inplace of migrate_get_socket_a

[PATCH v5 4/8] Add channels parameter in migrate_qmp_fail

2024-03-11 Thread Het Gala
Alter migrate_qmp_fail() to allow both uri and channels independently. For channels, convert string to a Dict. No dealing with migrate_get_socket_address() here because we will fail before starting the migration anyway. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v5 3/8] Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-11 Thread Het Gala
string instead. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c index 3e8c19c4de

Re: [PATCH v4 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-11 Thread Het Gala
On 12/03/24 2:55 am, Peter Xu wrote: On Sat, Mar 09, 2024 at 01:11:45PM +0530, Het Gala wrote: Can find the reference to the githab pipeline (before patchset) : https://urldefense.proofpoint.com/v2/url?u=https-3A__gitlab.com_galahet_Qemu_-2D_pipelines_1207185095=DwIBaQ=s883GpUCOChKOHiocYtGcg

Re: [PATCH v4 5/8] Add migrate_set_ports into migrate_qmp to update migration port value

2024-03-11 Thread Het Gala
On 12/03/24 12:12 am, Fabiano Rosas wrote: Het Gala writes: migrate_set_get_qdict gets qdict with the dst QEMU parameters s/set_// Ack migrate_set_ports() from list of channels reads each QDict for port, and fills the port with correct value in case it was 0 in the test. Signed-off

Re: [PATCH v4 3/8] Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-11 Thread Het Gala
On 12/03/24 2:21 am, Fabiano Rosas wrote: Het Gala writes: On 11/03/24 11:49 pm, Fabiano Rosas wrote: Het Gala writes: bool migrate_watch_for_events(QTestState *who, const char *name, @@ -130,7 +140,7 @@ void migrate_qmp(QTestState *who, QTestState *to, const char *uri

Re: [PATCH v4 3/8] Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-11 Thread Het Gala
On 11/03/24 11:49 pm, Fabiano Rosas wrote: Het Gala writes: bool migrate_watch_for_events(QTestState *who, const char *name, @@ -130,7 +140,7 @@ void migrate_qmp(QTestState *who, QTestState *to, const char *uri, g_assert(!qdict_haskey(args, "uri"));

Re: [PATCH v4 2/8] Replace connect_uri and move migrate_get_socket_address inside migrate_qmp

2024-03-11 Thread Het Gala
On 11/03/24 11:46 pm, Fabiano Rosas wrote: Het Gala writes: Move the calls to migrate_get_socket_address() into migrate_qmp(). Get rid of connect_uri and replace it with args->connect_uri only because 'to' object will help to generate connect_uri with the correct port number. Signed-

Re: Problem with migration/rdma

2024-03-11 Thread Het Gala
On 11/03/24 8:16 pm, Peter Xu wrote: On Mon, Mar 11, 2024 at 08:00:06PM +0530, Het Gala wrote: Let me send a proper patch to qemu devel mailing list and cc all the people involved. I have reviewed and tested the change. Have tweaked the commit message accordingly. I hope that's okay with you

Re: Problem with migration/rdma

2024-03-11 Thread Het Gala
password zu erstellen für Zukunft. QEMU Upstream bietet diese Lösung für kleinen Patch an im Notfall. Sie werden es behanden. Viele Grüße Yu On Fri, Mar 8, 2024 at 8:09 AM Alexei Pastuchov wrote: Regards, Het Gala

Re: [PATCH v4 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-08 Thread Het Gala
Can find the reference to the githab pipeline (before patchset) : https://gitlab.com/galahet/Qemu/-/pipelines/1207185095 Can find the reference to the githab pipeline (after patchset) : https://gitlab.com/galahet/Qemu/-/pipelines/1207183673 On 09/03/24 2:29 am, Het Gala wrote: With recent

[PATCH v4 8/8] Add negative tests to validate migration QAPIs

2024-03-08 Thread Het Gala
Migration QAPI arguments - uri and channels are mutually exhaustive. Add negative validation tests, one with both arguments present and one with none present. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests/qtest/migration-test.c | 54

[PATCH v4 6/8] Add channels parameter in migrate_qmp

2024-03-08 Thread Het Gala
Alter migrate_qmp() to allow use of channels parameter, but only fill the uri with correct port number if there are no channels. Here we don't want to allow the wrong cases of having both or none (ex: migrate_qmp_fail). Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v4 5/8] Add migrate_set_ports into migrate_qmp to update migration port value

2024-03-08 Thread Het Gala
migrate_set_get_qdict gets qdict with the dst QEMU parameters migrate_set_ports() from list of channels reads each QDict for port, and fills the port with correct value in case it was 0 in the test. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c | 73

[PATCH v4 4/8] Add channels parameter in migrate_qmp_fail

2024-03-08 Thread Het Gala
Alter migrate_qmp_fail() to allow both uri and channels independently. For channels, convert string to a Dict. No dealing with migrate_get_socket_address() here because we will fail before starting the migration anyway. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v4 7/8] Add multifd_tcp_plain test using list of channels instead of uri

2024-03-08 Thread Het Gala
Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point instead of simple uri string. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 30 +++--- 1 file

[PATCH v4 2/8] Replace connect_uri and move migrate_get_socket_address inside migrate_qmp

2024-03-08 Thread Het Gala
Move the calls to migrate_get_socket_address() into migrate_qmp(). Get rid of connect_uri and replace it with args->connect_uri only because 'to' object will help to generate connect_uri with the correct port number. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Ro

[PATCH v4 3/8] Replace migrate_get_connect_uri inplace of migrate_get_socket_address

2024-03-08 Thread Het Gala
migrate_get_socket_address implicitly converts SocketAddress into str. Move migrate_get_socket_address inside migrate_get_connect_uri which should return the uri string instead. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c | 26

[PATCH v4 1/8] Add 'to' object into migrate_qmp()

2024-03-08 Thread Het Gala
Add the 'to' object into migrate_qmp(), so we can use migrate_get_socket_address() inside migrate_qmp() to get the port value. This is not applied to other migrate_qmp* because they don't need the port. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas Reviewed-by: Fabiano Rosas --- tests

[PATCH v4 0/8] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-08 Thread Het Gala
te_qmp so that migrate_set_ports can replace the QAPI's port with correct value. Het Gala (8): Add 'to' object into migrate_qmp() Replace connect_uri and move migrate_get_socket_address inside migrate_qmp Replace migrate_get_connect_uri inplace of migrate_get_socket_address Add channels

Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number

2024-03-06 Thread Het Gala
On 06/03/24 9:31 pm, Fabiano Rosas wrote: Het Gala writes: On 06/03/24 8:06 pm, Fabiano Rosas wrote: Het Gala writes: Add a migrate_set_ports() function that from each QDict, fills in the port in case it was 0 in the test. Handle a list of channels so we can add a negative test

Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number

2024-03-06 Thread Het Gala
On 06/03/24 9:31 pm, Fabiano Rosas wrote: Het Gala writes: On 06/03/24 8:06 pm, Fabiano Rosas wrote: Het Gala writes: Add a migrate_set_ports() function that from each QDict, fills in the port in case it was 0 in the test. Handle a list of channels so we can add a negative test

Re: [PATCH v3 6/7] Add multifd_tcp_plain test using list of channels instead of uri

2024-03-06 Thread Het Gala
On 06/03/24 8:37 pm, Fabiano Rosas wrote: Het Gala writes: Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point instead of simple uri string. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

Re: [PATCH v3 5/7] Add channels parameter in migrate_qmp

2024-03-06 Thread Het Gala
On 06/03/24 8:12 pm, Fabiano Rosas wrote: Het Gala writes: Alter migrate_qmp() to allow use of channels parameter, but only fill the uri with correct port number if there are no channels. Here we don't want to allow the wrong cases of having both or none (ex: migrate_qmp_fail). Signed-off

Re: [PATCH v3 3/7] Add channels parameter in migrate_qmp_fail

2024-03-06 Thread Het Gala
On 06/03/24 8:10 pm, Fabiano Rosas wrote: Het Gala writes: Alter migrate_qmp_fail() to allow both uri and channels independently. For channels, convert string to a Dict. No dealing with migrate_get_socket_address() here because we will fail before starting the migration anyway. Signed-off

Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number

2024-03-06 Thread Het Gala
On 06/03/24 8:06 pm, Fabiano Rosas wrote: Het Gala writes: Add a migrate_set_ports() function that from each QDict, fills in the port in case it was 0 in the test. Handle a list of channels so we can add a negative test that passes more than one channel. Signed-off-by: Het Gala Suggested

Re: [PATCH v3 0/7] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-06 Thread Het Gala
On 06/03/24 4:19 pm, Het Gala wrote: Can also find the successful build here: https://gitlab.com/galahet/Qemu/-/pipelines/1201488612 Het Gala (7): Add 'to' object into migrate_qmp() Replace connect_uri and move migrate_get_socket_address inside migrate_qmp Add channels parameter

[PATCH v3 7/7] Add negative tests to validate migration QAPIs

2024-03-06 Thread Het Gala
Migration QAPI arguments - uri and channels are mutually exhaustive. Add negative validation tests, one with both arguments present and one with none present. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 54 1 file

[PATCH v3 3/7] Add channels parameter in migrate_qmp_fail

2024-03-06 Thread Het Gala
Alter migrate_qmp_fail() to allow both uri and channels independently. For channels, convert string to a Dict. No dealing with migrate_get_socket_address() here because we will fail before starting the migration anyway. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v3 5/7] Add channels parameter in migrate_qmp

2024-03-06 Thread Het Gala
Alter migrate_qmp() to allow use of channels parameter, but only fill the uri with correct port number if there are no channels. Here we don't want to allow the wrong cases of having both or none (ex: migrate_qmp_fail). Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest

[PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number

2024-03-06 Thread Het Gala
Add a migrate_set_ports() function that from each QDict, fills in the port in case it was 0 in the test. Handle a list of channels so we can add a negative test that passes more than one channel. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c | 26

[PATCH v3 1/7] Add 'to' object into migrate_qmp()

2024-03-06 Thread Het Gala
Add the 'to' object into migrate_qmp(), so we can use migrate_get_socket_address() inside migrate_qmp() to get the port value. This is not applied to other migrate_qmp* because they don't need the port. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-helpers.c

[PATCH v3 2/7] Replace connect_uri and move migrate_get_socket_address inside migrate_qmp

2024-03-06 Thread Het Gala
Move the calls to migrate_get_socket_address() into migrate_qmp(). Get rid of connect_uri and replace it with args->connect_uri only because 'to' object will help to generate connect_uri with the correct port number. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migrat

[PATCH v3 6/7] Add multifd_tcp_plain test using list of channels instead of uri

2024-03-06 Thread Het Gala
Add a positive test to check multifd live migration but this time using list of channels (restricted to 1) as the starting point instead of simple uri string. Signed-off-by: Het Gala Suggested-by: Fabiano Rosas --- tests/qtest/migration-test.c | 29 ++--- 1 file changed

[PATCH v3 0/7] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs

2024-03-06 Thread Het Gala
inside migrate_qmp so that migrate_set_ports can replace the QAPI's port with correct value. Het Gala (7): Add 'to' object into migrate_qmp() Replace connect_uri and move migrate_get_socket_address inside migrate_qmp Add channels parameter in migrate_qmp_fail Add migrate_set_ports into migra

Re: [PATCH v2 1/3] qtest: migration: Enhance qtest migration functions to support 'channels' argument

2024-03-01 Thread Het Gala
On 01/03/24 2:19 pm, Het Gala wrote: On 29/02/24 6:47 am, Fabiano Rosas wrote: Het Gala writes: On 27/02/24 1:04 am, Het Gala wrote: On 26/02/24 6:31 pm, Fabiano Rosas wrote: Het Gala  writes: On 24/02/24 1:42 am, Fabiano Rosas wrote: this was the same first approach that I attempted

Re: [PATCH v2 1/3] qtest: migration: Enhance qtest migration functions to support 'channels' argument

2024-03-01 Thread Het Gala
On 29/02/24 6:47 am, Fabiano Rosas wrote: Het Gala writes: On 27/02/24 1:04 am, Het Gala wrote: On 26/02/24 6:31 pm, Fabiano Rosas wrote: Het Gala writes: On 24/02/24 1:42 am, Fabiano Rosas wrote: this was the same first approach that I attempted. It won't work because The final

Re: [PATCH v2 1/3] qtest: migration: Enhance qtest migration functions to support 'channels' argument

2024-02-26 Thread Het Gala
On 27/02/24 1:04 am, Het Gala wrote: On 26/02/24 6:31 pm, Fabiano Rosas wrote: Het Gala writes: On 24/02/24 1:42 am, Fabiano Rosas wrote: this was the same first approach that I attempted. It won't work because The final 'migrate' QAPI with channels string would look like { "ex

Re: [PATCH v2 1/3] qtest: migration: Enhance qtest migration functions to support 'channels' argument

2024-02-26 Thread Het Gala
On 26/02/24 6:31 pm, Fabiano Rosas wrote: Het Gala writes: On 24/02/24 1:42 am, Fabiano Rosas wrote: this was the same first approach that I attempted. It won't work because The final 'migrate' QAPI with channels string would look like { "execute": "migrate", &quo

  1   2   3   4   >