[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/7] Add channels parameter in migrate_qmp
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH v3 5/7] Add channels parameter in migrate_qmp |
Date: |
Wed, 06 Mar 2024 11:42:05 -0300 |
Het Gala <het.gala@nutanix.com> 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-by: Het Gala <het.gala@nutanix.com>
> Suggested-by: Fabiano Rosas <farosas@suse.de>
> ---
> tests/qtest/migration-helpers.c | 20 +++++++++++++++-----
> tests/qtest/migration-helpers.h | 4 ++--
> tests/qtest/migration-test.c | 28 ++++++++++++++--------------
> 3 files changed, 31 insertions(+), 21 deletions(-)
>
> diff --git a/tests/qtest/migration-helpers.c b/tests/qtest/migration-helpers.c
> index df4978bf17..0b891351a5 100644
> --- a/tests/qtest/migration-helpers.c
> +++ b/tests/qtest/migration-helpers.c
> @@ -19,7 +19,6 @@
> #include "qapi/error.h"
> #include "qapi/qmp/qlist.h"
>
> -
> #include "migration-helpers.h"
>
> /*
> @@ -154,10 +153,12 @@ void migrate_qmp_fail(QTestState *who, const char *uri,
> * qobject_from_jsonf_nofail()) with "uri": @uri spliced in.
> */
> void migrate_qmp(QTestState *who, QTestState *to, const char *uri,
> - const char *fmt, ...)
> + const char *channels, const char *fmt, ...)
> {
> va_list ap;
> QDict *args;
> + Error *error_abort = NULL;
Remove this.
> + QObject *channels_obj = NULL;
> g_autofree char *connect_uri = NULL;
>
> va_start(ap, fmt);
- Re: [PATCH v3 3/7] Add channels parameter in migrate_qmp_fail, (continued)
- [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Het Gala, 2024/03/06
- Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Fabiano Rosas, 2024/03/06
- Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Het Gala, 2024/03/06
- Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Fabiano Rosas, 2024/03/06
- Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Het Gala, 2024/03/06
- Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Het Gala, 2024/03/06
- Re: [PATCH v3 4/7] Add migrate_set_ports into migrate_qmp to change migration port number, Fabiano Rosas, 2024/03/07
[PATCH v3 5/7] Add channels parameter in migrate_qmp, Het Gala, 2024/03/06
- Re: [PATCH v3 5/7] Add channels parameter in migrate_qmp,
Fabiano Rosas <=
[PATCH v3 6/7] Add multifd_tcp_plain test using list of channels instead of uri, Het Gala, 2024/03/06
[PATCH v3 7/7] Add negative tests to validate migration QAPIs, Het Gala, 2024/03/06
Re: [PATCH v3 0/7] qtest: migration: Add tests for introducing 'channels' argument in migrate QAPIs, Het Gala, 2024/03/06