Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A028ED5B86F for ; Mon, 15 Dec 2025 22:03:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vVGeh-0005nc-CX; Mon, 15 Dec 2025 17:03:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vVGeI-00050p-Qr for qemu-devel@nongnu.org; Mon, 15 Dec 2025 17:02:36 -0500 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vVGeD-0002tH-EL for qemu-devel@nongnu.org; Mon, 15 Dec 2025 17:02:32 -0500 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 4E8C93378B; Mon, 15 Dec 2025 22:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1765836122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ejj8SHFCwe9/p1P7ixjeMELwlONdZ6cwRRvSelZ/Kp8=; b=vjkqTvTwlLGR322fM9DpyrulHPP/yvdZRbF14nYl6OHb5bf2PIN9hDpisE30kdvK1r+Rfm j82NqIkddsp8++sR7mLsU7ZVZRn7AQ8fN6dtVQviih9FaPV6W+qbYwErF/1g2PLfvbIJLO BmzPqHUHPFw1PdXFXyS5UJDfAjrz6DQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1765836122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ejj8SHFCwe9/p1P7ixjeMELwlONdZ6cwRRvSelZ/Kp8=; b=6mDCHHUZA/Xgm5cRMjCwrTW5c2+gy/NOpchLuoMY2DTJJHAzSUrU4HZxtKkDSCf6ghmeOZ VmrMR9R1R79x3VDA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1765836122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ejj8SHFCwe9/p1P7ixjeMELwlONdZ6cwRRvSelZ/Kp8=; b=vjkqTvTwlLGR322fM9DpyrulHPP/yvdZRbF14nYl6OHb5bf2PIN9hDpisE30kdvK1r+Rfm j82NqIkddsp8++sR7mLsU7ZVZRn7AQ8fN6dtVQviih9FaPV6W+qbYwErF/1g2PLfvbIJLO BmzPqHUHPFw1PdXFXyS5UJDfAjrz6DQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1765836122; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ejj8SHFCwe9/p1P7ixjeMELwlONdZ6cwRRvSelZ/Kp8=; b=6mDCHHUZA/Xgm5cRMjCwrTW5c2+gy/NOpchLuoMY2DTJJHAzSUrU4HZxtKkDSCf6ghmeOZ VmrMR9R1R79x3VDA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 454F23EA63; Mon, 15 Dec 2025 22:02:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id YFbjAViFQGlrMQAAD6G6ig (envelope-from ); Mon, 15 Dec 2025 22:02:00 +0000 From: Fabiano Rosas To: qemu-devel@nongnu.org Cc: berrange@redhat.com, armbru@redhat.com, Peter Xu , Laurent Vivier , Paolo Bonzini Subject: [PATCH v3 29/51] tests/qtest/migration: Add config QDict Date: Mon, 15 Dec 2025 19:00:15 -0300 Message-ID: <20251215220041.12657-30-farosas@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251215220041.12657-1-farosas@suse.de> References: <20251215220041.12657-1-farosas@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-0.987]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_SOME(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; R_RATELIMIT(0.00)[to_ip_from(RLjrdmmf3juheryardexw6jb95)]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email, suse.de:mid, imap1.dmz-prg2.suse.org:helo] Received-SPF: pass client-ip=2a07:de40:b251:101:10:150:64:1; envelope-from=farosas@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Add the config object to the MigrateCommon structure and allocate/free it in the wrappers that are used when dispatched every migration test. Signed-off-by: Fabiano Rosas --- tests/qtest/migration/framework.h | 2 ++ tests/qtest/migration/migration-util.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/qtest/migration/framework.h b/tests/qtest/migration/framework.h index bf3492a59e..65c656e0d3 100644 --- a/tests/qtest/migration/framework.h +++ b/tests/qtest/migration/framework.h @@ -151,6 +151,8 @@ typedef struct { * used for the deferred migrate_incoming call. */ bool incoming_defer; + + QDict *config; } MigrateStart; typedef enum PostcopyRecoveryFailStage { diff --git a/tests/qtest/migration/migration-util.c b/tests/qtest/migration/migration-util.c index c2462306a1..416dd10ef8 100644 --- a/tests/qtest/migration/migration-util.c +++ b/tests/qtest/migration/migration-util.c @@ -243,6 +243,7 @@ static void migration_test_destroy(gpointer data) { MigrationTest *test = (MigrationTest *)data; + qdict_unref(test->data->start.config); g_free(test->data); g_free(test->name); g_free(test); @@ -253,6 +254,7 @@ static void migration_test_wrapper(const void *data) MigrationTest *test = (MigrationTest *)data; test->data = g_new0(MigrateCommon, 1); + test->data->start.config = qdict_new(); g_test_message("Running /%s%s", qtest_get_arch(), test->name); test->func(test->name, test->data); -- 2.51.0