From nobody Tue Nov 26 08:31:57 2024 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=bytedance.com ARC-Seal: i=1; a=rsa-sha256; t=1709265610; cv=none; d=zohomail.com; s=zohoarc; b=iiktEktsD5/zthxP9oXK+h4lKXNb8sFELjTVIL9R2Y/+98JRIF3sshW0jrWBiwZhbDtwTc7d01nbtmIW2+NGN8hsWUusTctMdt2Cm78Rtf36Zhu9QxD+D+wex0FzMlBRK8bkWFcT4bcwhwmT8dE+MIC5MtB3J7+fv7bRbofYwtY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1709265610; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LyOj4EOEJC+5kw+zlLlJ+hZRPszzVwAFiDK3HfnEjew=; b=UsfDPjFIXAKptWuBRZSBhmJnA4art6pFp3ZaYcxhjj3nv5GrNUA8Wg6IlXFYlyMwsZCy0FHcuUVEITLDlolmeuqiekWwtpfmABt3n3qHsLmD4p2H+luPprg1Y8bwXfyHCvdOuivQO98Tb330jE+SAsS83hVFSs9IH52gHNe6Wj4= 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+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1709265610636890.0345424006829; Thu, 29 Feb 2024 20:00:10 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfu3j-00048F-1T; Thu, 29 Feb 2024 22:59:44 -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 1rfu3a-00047B-PG for qemu-devel@nongnu.org; Thu, 29 Feb 2024 22:59:35 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rfu3Z-0005f0-4u for qemu-devel@nongnu.org; Thu, 29 Feb 2024 22:59:34 -0500 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-787dacbcfeeso90503285a.1 for ; Thu, 29 Feb 2024 19:59:32 -0800 (PST) Received: from n36-186-108.byted.org. ([130.44.212.90]) by smtp.gmail.com with ESMTPSA id c21-20020a05620a165500b00787c6703539sm1296986qko.90.2024.02.29.19.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 19:59:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1709265572; x=1709870372; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LyOj4EOEJC+5kw+zlLlJ+hZRPszzVwAFiDK3HfnEjew=; b=Ejk73uoaDyDXxmvHwQ+e6Mb3dY9/lFtu7Egh84+uJECcgQP2wqCpD+rNAj8MNDahZ5 RTkFVTRWGKJ2MYP2KmExqxAZytXZuPCQKQiE01jIJU2i7UJxGZFbEv9yvpEVOG5hpuja NM4qeX0Jz3l87hFvP5L9KKwwOwtDoeGH3D2WTLM60TMCarwBjxhNIpmQYVFlTtQXJ1uZ aImCAQKvZtkbG0oCzP5H6z/cxDVR+5kDtfMs3K9wolCUDVqm94CRJJG1MqlhczWP3lje O8lLqK+jcrrSY9i6sIB/u68Vls/FtHlf/ZdGnlAIRdaBBqYcFNOTZhw4eM3i/o+EV3sZ DwJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709265572; x=1709870372; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LyOj4EOEJC+5kw+zlLlJ+hZRPszzVwAFiDK3HfnEjew=; b=E4rBjBE0HKfGI892t4YhfMnpSjr8UPHPsWsgH/S0a/uYxWLhyGYQAyUhtBttZZ1GV7 rgajuGXtk9YR1Oo2ARTfljBkk87qbmQPqt0VA+jAv/n31ByZONVeoQnyHT0aq5/RzHrk QfLqHAmC/5ojyy03/asQi5aWjdfn8glj/QDqWx04HROsG9ynt4nwkQhBUoiI/WV3C36E FBuHYtH4jlIABt1StbzPuuwUQBpZMmPbvDo6U/ZcI6JHujVTrAPphmD9Ii6FLslZBejj J3ta3SCM5fuvJFmfDwS+JZgrrfERJtuitN0K1lJRmoI3jjojk97rsq83wP0qtNLxdrED k5Nw== X-Gm-Message-State: AOJu0Yy++sOXhz6IWfgPd/f9lm+pSA3qLagsV1jmOJKkOKLHo2DPeUJo /wt0hg/74NNxSf2a3qDYAjHTVWNmP1jl5A9/kr69X+FW/bzfFBtd6ZUgvkSW5B8m69+Jwy7zdHR j X-Google-Smtp-Source: AGHT+IFP71C6QHjsLqwg0m9nYdp5OzOGLkZeF6fhiTIhZc/aHQH07oznClUUjJZHfDiQguWaPZbawg== X-Received: by 2002:a05:620a:471f:b0:787:dd94:a492 with SMTP id bs31-20020a05620a471f00b00787dd94a492mr835167qkb.16.1709265571860; Thu, 29 Feb 2024 19:59:31 -0800 (PST) From: Bryan Zhang To: qemu-devel@nongnu.org, peterx@redhat.com, farosas@suse.de Cc: hao.xiang@bytedance.com, Bryan Zhang , Bryan Zhang Subject: [PATCH 2/2] tests/migration: Set compression level in migration tests Date: Fri, 1 Mar 2024 03:59:01 +0000 Message-Id: <20240301035901.4006936-3-bryan.zhang@bytedance.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20240301035901.4006936-1-bryan.zhang@bytedance.com> References: <20240301035901.4006936-1-bryan.zhang@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=bryan.zhang@bytedance.com; helo=mail-qk1-x729.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @bytedance.com) X-ZM-MESSAGEID: 1709265611899100002 Content-Type: text/plain; charset="utf-8" From: Bryan Zhang Adds calls to set compression level for `zstd` and `zlib` migration tests, just to make sure that the calls work. Signed-off-by: Bryan Zhang --- tests/qtest/migration-test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 8a5bb1752e..f23e860547 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -2625,6 +2625,13 @@ static void * test_migrate_precopy_tcp_multifd_zlib_start(QTestState *from, QTestState *to) { + /* + * Overloading this test to also check that set_parameter does not err= or. + * This is also done in the tests for the other compression methods. + */ + migrate_set_parameter_int(from, "multifd-zlib-level", 2); + migrate_set_parameter_int(to, "multifd-zlib-level", 2); + return test_migrate_precopy_tcp_multifd_start_common(from, to, "zlib"); } =20 @@ -2633,6 +2640,9 @@ static void * test_migrate_precopy_tcp_multifd_zstd_start(QTestState *from, QTestState *to) { + migrate_set_parameter_int(from, "multifd-zstd-level", 2); + migrate_set_parameter_int(to, "multifd-zstd-level", 2); + return test_migrate_precopy_tcp_multifd_start_common(from, to, "zstd"); } #endif /* CONFIG_ZSTD */ --=20 2.30.2