From nobody Mon Feb 9 08:16:13 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516980150759466.13747933899333; Fri, 26 Jan 2018 07:22:30 -0800 (PST) Received: from localhost ([::1]:33173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ef5ph-0000Ab-L3 for importer@patchew.org; Fri, 26 Jan 2018 10:22:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ef5nW-0007BK-Pe for qemu-devel@nongnu.org; Fri, 26 Jan 2018 10:20:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ef5nS-0000hm-Pl for qemu-devel@nongnu.org; Fri, 26 Jan 2018 10:20:10 -0500 Received: from fanzine.igalia.com ([91.117.99.155]:54127) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ef5nS-0000hI-Fp; Fri, 26 Jan 2018 10:20:06 -0500 Received: from 88-114-101-230.elisa-laajakaista.fi ([88.114.101.230] helo=perseus.local) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1ef5Ud-0007gy-Oq; Fri, 26 Jan 2018 16:00:39 +0100 Received: from berto by perseus.local with local (Exim 4.89) (envelope-from ) id 1ef5UI-00088L-87; Fri, 26 Jan 2018 17:00:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=References:In-Reply-To:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=V/z26WkzT/KJWFCd9k21skyNut3LCXuHx0uK/mg6vwA=; b=geoL9hOS3yP3nXmc+/E17iQ/iWBpx1i3bOA1hh6Ijo1ABTQYFyZZiinr6nBRCXK2PpnDh34JvLY/8XV5aLQtu0jh6HG5At5z0JA6fwOfEB0aHjksHNN8/V0pZjXqNWsZp6TBgr/uUZY+Qj/m6NtXKbDsl3edaKERqR3AFHvCmgiTlB/6SAwY4SytKrVQ0k1ktuoEGAfN0mQ9OUlI0/3geP4rkG26N+yfe6hfuXyt4diStuVcrzc1uMlGhrDHFzxEtzrpP5ugIcX0Iok67Uacaldwp73DNQMeeTdqcTWJpr1/O9ltVMtSAGOTsYQBRqQX1siN4FuLbYmOu2dSvkOJfA==; From: Alberto Garcia To: qemu-devel@nongnu.org Date: Fri, 26 Jan 2018 17:00:06 +0200 Message-Id: <9f551b36d688079dcda4838c788f41a190b5219c.1516978645.git.berto@igalia.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 91.117.99.155 Subject: [Qemu-devel] [PATCH v3 39/39] iotests: Add l2-cache-entry-size to iotest 137 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Anton Nefedov , Alberto Garcia , qemu-block@nongnu.org, Max Reitz , "Denis V . Lunev" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This test tries reopening a qcow2 image with valid and invalid options. This patch adds l2-cache-entry-size to the set. Signed-off-by: Alberto Garcia --- tests/qemu-iotests/137 | 5 +++++ tests/qemu-iotests/137.out | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tests/qemu-iotests/137 b/tests/qemu-iotests/137 index 5a01250005..87965625d8 100755 --- a/tests/qemu-iotests/137 +++ b/tests/qemu-iotests/137 @@ -83,6 +83,9 @@ $QEMU_IO \ -c "reopen -o overlap-check.inactive-l2=3Doff" \ -c "reopen -o cache-size=3D1M" \ -c "reopen -o l2-cache-size=3D512k" \ + -c "reopen -o l2-cache-entry-size=3D512" \ + -c "reopen -o l2-cache-entry-size=3D4k" \ + -c "reopen -o l2-cache-entry-size=3D64k" \ -c "reopen -o refcount-cache-size=3D128k" \ -c "reopen -o cache-clean-interval=3D5" \ -c "reopen -o cache-clean-interval=3D0" \ @@ -107,6 +110,8 @@ $QEMU_IO \ -c "reopen -o cache-size=3D1M,l2-cache-size=3D2M" \ -c "reopen -o cache-size=3D1M,refcount-cache-size=3D2M" \ -c "reopen -o l2-cache-size=3D256T" \ + -c "reopen -o l2-cache-entry-size=3D33k" \ + -c "reopen -o l2-cache-entry-size=3D128k" \ -c "reopen -o refcount-cache-size=3D256T" \ -c "reopen -o overlap-check=3Dconstant,overlap-check.template=3Dall" \ -c "reopen -o overlap-check=3Dblubb" \ diff --git a/tests/qemu-iotests/137.out b/tests/qemu-iotests/137.out index 05efd74d17..e28e1eadba 100644 --- a/tests/qemu-iotests/137.out +++ b/tests/qemu-iotests/137.out @@ -20,6 +20,8 @@ cache-size, l2-cache-size and refcount-cache-size may not= be set the same time l2-cache-size may not exceed cache-size refcount-cache-size may not exceed cache-size L2 cache size too big +L2 cache entry size must be a power of two between 512 and the cluster siz= e (65536) +L2 cache entry size must be a power of two between 512 and the cluster siz= e (65536) L2 cache size too big Conflicting values for qcow2 options 'overlap-check' ('constant') and 'ove= rlap-check.template' ('all') Unsupported value 'blubb' for qcow2 option 'overlap-check'. Allowed are an= y of the following: none, constant, cached, all --=20 2.11.0