From nobody Wed Feb 11 03:44:41 2026 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1686264819; cv=none; d=zohomail.com; s=zohoarc; b=b2ZEA0azcTb2AwstNKNHDLWxkSufCW5V8TO3iQVriDR0pp0zu3pY33Bu8WrkaAeb6Hx//Ej6aqT7srvgBf62hforDwEkxxylfG0H3zsvQiJhb00+4cA4fMvIFwU1uVBGb3aBDCIxyeq1WC4ah8NzZP1BTUcAhIRABYOF97ZtpEU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1686264819; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YF5zaFACHYRMZKZN/az3fcgRTJqGCYVOIz68XsYtrmY=; b=gh8HNFOyJjjxx2c8+RipFyPlgqLSXXIo8LXM53UdM8nwMpI6OfNexxdSWIxRBBUiT/mBoDLq6Hm4z9vpJKGWzXORarBbsNbS5NzrSU09rExlK3I0QqkA7YdRvvItMgS7QnC7ewg2oCMaXlT6jk+4of3g13ijFIzQUmCr1INgdFg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1686264819877446.9469538627451; Thu, 8 Jun 2023 15:53:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7OST-0003XZ-Oz; Thu, 08 Jun 2023 18:50:21 -0400 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 1q7OSS-0003XL-GI for qemu-devel@nongnu.org; Thu, 08 Jun 2023 18:50:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7OSR-00052L-1L for qemu-devel@nongnu.org; Thu, 08 Jun 2023 18:50:20 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-76-CJTNoqLFPO-P_Rr7hMjGUw-1; Thu, 08 Jun 2023 18:50:15 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C5A5D85A5A8; Thu, 8 Jun 2023 22:50:14 +0000 (UTC) Received: from secure.mitica (unknown [10.39.192.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 47C23515541; Thu, 8 Jun 2023 22:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686264618; h=from:from:reply-to:subject:subject: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=YF5zaFACHYRMZKZN/az3fcgRTJqGCYVOIz68XsYtrmY=; b=AY36YcNeIaxsdBcJWoGvf5SVHbAOMKYgxSS3qlNqcCsdnvucuTOfQJOPkybV3nHBkgMsSV 8HL7DPq4IQEKoOmM5ZZzXnK3+neN0KZyzK1WdgWou/vp9wcqoW3OMk+PSKnaXc+TnLDnwd 4RmKC5HGOP8wd/ZUkDOSr1BjDrEj/J0= X-MC-Unique: CJTNoqLFPO-P_Rr7hMjGUw-1 From: Juan Quintela To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Laurent Vivier , Thomas Huth , Peter Xu , Peter Maydell , Juan Quintela , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Leonardo Bras Subject: [PATCH 15/42] migration-test: migrate_postcopy_prepare() always return 0 Date: Fri, 9 Jun 2023 00:49:16 +0200 Message-Id: <20230608224943.3877-16-quintela@redhat.com> In-Reply-To: <20230608224943.3877-1-quintela@redhat.com> References: <20230608224943.3877-1-quintela@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=quintela@redhat.com; helo=us-smtp-delivery-124.mimecast.com 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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1686264821436100001 Content-Type: text/plain; charset="utf-8" So make it return void. Signed-off-by: Juan Quintela Reviewed-by: Peter Xu --- tests/qtest/migration-test.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index b57811da75..e623c43957 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -1146,9 +1146,9 @@ test_migrate_compress_nowait_start(QTestState *from, return NULL; } =20 -static int migrate_postcopy_prepare(QTestState **from_ptr, - QTestState **to_ptr, - MigrateCommon *args) +static void migrate_postcopy_prepare(QTestState **from_ptr, + QTestState **to_ptr, + MigrateCommon *args) { g_autofree char *uri =3D g_strdup_printf("unix:%s/migsocket", tmpfs); QTestState *from, *to; @@ -1179,8 +1179,6 @@ static int migrate_postcopy_prepare(QTestState **from= _ptr, =20 *from_ptr =3D from; *to_ptr =3D to; - - return 0; } =20 static void migrate_postcopy_complete(QTestState *from, QTestState *to, @@ -1207,9 +1205,7 @@ static void test_postcopy_common(MigrateCommon *args) { QTestState *from, *to; =20 - if (migrate_postcopy_prepare(&from, &to, args)) { - return; - } + migrate_postcopy_prepare(&from, &to, args); migrate_postcopy_start(from, to); migrate_postcopy_complete(from, to, args); } @@ -1270,9 +1266,7 @@ static void test_postcopy_recovery_common(MigrateComm= on *args) /* Always hide errors for postcopy recover tests since they're expecte= d */ args->start.hide_stderr =3D true; =20 - if (migrate_postcopy_prepare(&from, &to, args)) { - return; - } + migrate_postcopy_prepare(&from, &to, args); =20 /* Turn postcopy speed down, 4K/s is slow enough on any machines */ migrate_set_parameter_int(from, "max-postcopy-bandwidth", 4096); --=20 2.40.1