From nobody Sun Nov 24 12:42:17 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=1723681371; cv=none; d=zohomail.com; s=zohoarc; b=Scg76pPJ/cQ/+9GJc7AWw0fWE8+g8cp1Ex+smLjTZ9yw5Y0mwO1QyJnMNgRBY0RYNaAnoDlFSjZc018hYMMj0sb1fsO0Tw7GoYG7CjAHkdhDZJNx4xjxmWLZ/qRtUIUpZ/nybryjj7haXxZJiTPGD5X3uF52hevlMb+oB+Daj5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1723681371; 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=70tmt7SXXA8xNV/GOXmAHGlkd6Y3uEXM0oMIn+MfWWk=; b=hpoY3GIjCoFrOjhTPat4wmJkU2Y2KAoJLo/Izev9L5Ojstv7MwQRpVaA/PmHIs2Rbvu0xUWOPG0RSLdicwMfU1wk+NUak9NaiaILRQgD1PWoEBDLbPgXwtgQgUbKzgiVSraPcsMcDmjhEll4VbjqNP4SD9X13VrZ4pjYSMMMc1k= 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 172368137130545.14605776056044; Wed, 14 Aug 2024 17:22:51 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seOFK-00056I-5i; Wed, 14 Aug 2024 20:21:42 -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 1seOFI-00050J-He for qemu-devel@nongnu.org; Wed, 14 Aug 2024 20:21:40 -0400 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seOFG-0004HF-Sq for qemu-devel@nongnu.org; Wed, 14 Aug 2024 20:21:40 -0400 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-710ece280b6so312610b3a.2 for ; Wed, 14 Aug 2024 17:21:38 -0700 (PDT) Received: from DY4X0N7X05.bytedance.net ([72.29.204.230]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-201f02faa03sm1961185ad.19.2024.08.14.17.21.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 14 Aug 2024 17:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1723681297; x=1724286097; 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=70tmt7SXXA8xNV/GOXmAHGlkd6Y3uEXM0oMIn+MfWWk=; b=iHIxtynnJrMF5Y2BEuW4k8tsxIqy03xUQeWOubIq7mOVabANL4rtB4kSaLF3NEvzOh Z6elE+jr+4CyfBVC3gvBTNdYDchrOHYRK6nuZsj3MQcyCnMsSHLuLAFHMCokEI7lIUQ7 nF4IIEvhE4SBNnMV7x/jPWXfeC2ErzaKFWdy5cLvyc17vN5+7jdsEW3Sw0UMPRuG74Hr sBtOFe+gCFSwR2CR9afx54qYpPCtjJ8X1uxeh4zly1ls0NjqH8/b2io49upwr/pWSEWN kzkWRwURnSVk/PFokckS+zQR2CgDx4GdcC7S9AWv9LiPr+11VvT8bGs1lHEftTGVy9py 0aUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723681297; x=1724286097; 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=70tmt7SXXA8xNV/GOXmAHGlkd6Y3uEXM0oMIn+MfWWk=; b=Spf3O4VSJBvbz7JHjWck/5kecoz5hlJrHg9CMIr5N/pYxAZvTsQO4iLDxOb8v8+y29 wHzHp5axTKOfZk1/fNupAs11zyI8zO5TVuMH6Br2LOXj2EE2Az2AOLy4GT5uwlrt6emb IjJ7mV7cuHS8NwuBxKbAZqIt4kCDC1eL4xlGyN+BkRyNMjC2A2qm0g3YeJlsfvn+gVlu 75mTAGzDVpX/4Rm11U8WBfwKzCBDvCHgzuOsRiZZK6trylr3qwBF2McpOLChACO8HgAF qeFu5dnKfPaRGpR4z7anktjVtyKlW1VNMzm9jkDgaw2a+7N2aPEEk0CjlSca7Jlkjcht 3Vag== X-Forwarded-Encrypted: i=1; AJvYcCWpae2U7Erqk0A5d+K5KVAyLyKpyeri0u9vcufm3swM5gxz1FJJrMx9gfsoXDDdzVPPkHDm/ACtGozQBTgWnGY6CCxVeus= X-Gm-Message-State: AOJu0YyWkavz0ZehTNK3AJr6VnFVKDdt5LViRTR3jQ70sUlCSQQOx6pi hdsyxIzMSc4DO9XLFxTGaseGWbLrtC23FDZ3+BqqXUBv/yBB92n+iCQm0y/nwRA= X-Google-Smtp-Source: AGHT+IHcFOepqsH/6Q/9F/rNl7zNg+U6jP63+E2fx8QnWHphBOzjOXT1z63hJy2uE17YXxm6B1svVw== X-Received: by 2002:a05:6a20:c6c2:b0:1c6:a83c:d5db with SMTP id adf61e73a8af0-1c8eae97feamr3442947637.31.1723681297382; Wed, 14 Aug 2024 17:21:37 -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" , Bryan Zhang Subject: [PATCH v7 5/5] tests/migration: Add integration test for 'qatzip' compression method Date: Wed, 14 Aug 2024 17:21:24 -0700 Message-Id: <20240815002124.65384-6-yichen.wang@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240815002124.65384-1-yichen.wang@bytedance.com> References: <20240815002124.65384-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::42c; envelope-from=yichen.wang@bytedance.com; helo=mail-pf1-x42c.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: 1723681372526116600 Content-Type: text/plain; charset="utf-8" From: Bryan Zhang Adds an integration test for 'qatzip'. Signed-off-by: Bryan Zhang Signed-off-by: Hao Xiang Signed-off-by: Yichen Wang Reviewed-by: Fabiano Rosas --- 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 70b606b888..3aed5441f7 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -2992,6 +2992,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, @@ -3089,6 +3101,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) { @@ -3992,6 +4015,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