From nobody Sun Nov 24 09:47:29 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=1725060557; cv=none; d=zohomail.com; s=zohoarc; b=cAKuhfCFKn9Chaq+xUzmn1Tw/ypdI9/h/PPGs5OQ3Z9/e2E46syKTLPKpnVMxMx0IKB+NaAp8ST4UKFAP5FOR81pAsDc0lBkaP4U1ZhM0JncwYZnaogDmecJecdOc9y4IsgDimfcKFxT+O+6Vq9yY4xBziIM2zKAoXZZQkUwOos= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725060557; 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=NwTaXma1P8wCOFOi5BsJFNvgHenJODlA3HdTsBM5hh8=; b=Vl1HShXIrP7jV6QuTUQJbo9ipnfUUxBCR4WcPCk1y+bDcsk1qH82TO8XEKDbmhvBj9vpCJxeuho/49bxYlh3Xgcqal4gq+j0Vzl4bbz1tEbpscJ5UFS085CYh7wTRvjll0bSSUGO2vsm9+rZiHnVpyh9a68vAiW4qcbB/fxWO24= 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 1725060557060739.1326145149649; Fri, 30 Aug 2024 16:29:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skB29-0002Fy-BU; Fri, 30 Aug 2024 19:28:01 -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 1skB27-00026o-1g for qemu-devel@nongnu.org; Fri, 30 Aug 2024 19:27:59 -0400 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1skB25-0001rX-Gn for qemu-devel@nongnu.org; Fri, 30 Aug 2024 19:27:58 -0400 Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-e13d5cbc067so2518597276.2 for ; Fri, 30 Aug 2024 16:27:57 -0700 (PDT) Received: from DY4X0N7X05.bytedance.net ([72.29.204.230]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6c340ca689asm19129176d6.109.2024.08.30.16.27.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 30 Aug 2024 16:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1725060476; x=1725665276; 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=NwTaXma1P8wCOFOi5BsJFNvgHenJODlA3HdTsBM5hh8=; b=lPnFn0oXjI9eH0trUQGYNpTF4+8gfK1NmL48BvMxc/+mgtG376l+BSSPyLaai01RJ9 Y4+AYOMAd0o1RP02TtEKR747I3CYqzaK3AymWDIaE3BY27cwBBxxEHmtlx2wOe8Ih6Kq BRWDLIkG1zSg5gLActOF+5uTFlmriPECCjclZAJs6ZRuCMqc0u1+Yf+0jJb1913DXR3z 1zlxThaeNiLIraUGIOYWngtj4qtlFnJbbqbT8an7X8MhYeoAN2uTSWERI6p2o4+C9nfy LQfexdTk8Upd387L06hczYt1l+lssMoZMa0bcgSSjMDZtUTxC8lXOVvVrCUwoCi3K22l yV9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725060476; x=1725665276; 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=NwTaXma1P8wCOFOi5BsJFNvgHenJODlA3HdTsBM5hh8=; b=UP4wO18Dqq4Rxp4k6ymrOsQAyKgy90BmxcE5fRKS4yCs0IJMR8ytBVXRa20dy8wwIH ni/PhL0h2f/cLDL5rrB2wxPaYak6oqtrXU/d6n0WOab0XpxHacCPr2O6mnjbxEDuN6f7 MO+BNKXiOirGKMWu4X9bFKh1T6uDDEXk5We1Mku3eEatQDJ15oOQ69O+kEtDPGz5nPr/ Bc26C87/Ok4HuTDGJqywYdvBHB+i3RRdS/Bmqa6Ggt4W6fdXBIcLrZbZ90Oi4FgGz7zo ljtckz9oDLPQDKnQ79hMBLkSY0P6Rx9yzeTtwmCuxrJj6DnL/Z7mWksOfZtjBM3m224u 4x1g== X-Forwarded-Encrypted: i=1; AJvYcCUkMKAZl7pQoiYX3YEKGrQ3uOB2JeammjjK/02d1BoBwL80giheOKvLMvV0VvmkLPtyOsIEWGTf12ij@nongnu.org X-Gm-Message-State: AOJu0Ywsi1s+RmJSlo9w/loT6nx48fvgLmD5UtOzCUprIT5YbkLGdu5q E7uX1MJVuP3nd/+V40cHs2j4Xanrdj8CSjqFDKkculJPyQzUAqwKElp8gnYp3UM= X-Google-Smtp-Source: AGHT+IHCOpvKqBz5shhbJntWKk8hIPq+ozwk0BCKFeFthiqNmlaEC2OsiLL1rpJGMD/Ama8wvsVPSQ== X-Received: by 2002:a25:ce50:0:b0:e1a:8026:e71b with SMTP id 3f1490d57ef6-e1a8026e893mr2736340276.54.1725060476556; Fri, 30 Aug 2024 16:27:56 -0700 (PDT) From: Yichen Wang To: Peter Xu , Fabiano Rosas , Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eduardo Habkost , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Eric Blake , Markus Armbruster , qemu-devel@nongnu.org Cc: "Hao Xiang" , "Liu, Yuan1" , "Zou, Nanhai" , "Ho-Ren (Jack) Chuang" , "Yichen Wang" , "Xiaoning Ding" , Bryan Zhang Subject: [PATCH v9 5/5] tests/migration: Add integration test for 'qatzip' compression method Date: Fri, 30 Aug 2024 16:27:22 -0700 Message-Id: <20240830232722.58272-6-yichen.wang@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240830232722.58272-1-yichen.wang@bytedance.com> References: <20240830232722.58272-1-yichen.wang@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::b2e; envelope-from=yichen.wang@bytedance.com; helo=mail-yb1-xb2e.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: 1725060558445116600 Content-Type: text/plain; charset="utf-8" From: Bryan Zhang Adds an integration test for 'qatzip'. Reviewed-by: Fabiano Rosas Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang Signed-off-by: Yichen Wang --- tests/qtest/migration-test.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 6c06100d91..9f74b1722c 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -2996,6 +2996,18 @@ test_migrate_precopy_tcp_multifd_zstd_start(QTestSta= te *from, } #endif /* CONFIG_ZSTD */ =20 +#ifdef CONFIG_QATZIP +static void * +test_migrate_precopy_tcp_multifd_qatzip_start(QTestState *from, + QTestState *to) +{ + migrate_set_parameter_int(from, "multifd-qatzip-level", 2); + migrate_set_parameter_int(to, "multifd-qatzip-level", 2); + + return test_migrate_precopy_tcp_multifd_start_common(from, to, "qatzip= "); +} +#endif + #ifdef CONFIG_QPL static void * test_migrate_precopy_tcp_multifd_qpl_start(QTestState *from, @@ -3093,6 +3105,17 @@ static void test_multifd_tcp_zstd(void) } #endif =20 +#ifdef CONFIG_QATZIP +static void test_multifd_tcp_qatzip(void) +{ + MigrateCommon args =3D { + .listen_uri =3D "defer", + .start_hook =3D test_migrate_precopy_tcp_multifd_qatzip_start, + }; + test_precopy_common(&args); +} +#endif + #ifdef CONFIG_QPL static void test_multifd_tcp_qpl(void) { @@ -3996,6 +4019,10 @@ int main(int argc, char **argv) migration_test_add("/migration/multifd/tcp/plain/zstd", test_multifd_tcp_zstd); #endif +#ifdef CONFIG_QATZIP + migration_test_add("/migration/multifd/tcp/plain/qatzip", + test_multifd_tcp_qatzip); +#endif #ifdef CONFIG_QPL migration_test_add("/migration/multifd/tcp/plain/qpl", test_multifd_tcp_qpl); --=20 Yichen Wang