From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1elZl9-0003vb-0i for qemu-devel@nongnu.org; Tue, 13 Feb 2018 07:32:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1elZl8-0001Fj-18 for qemu-devel@nongnu.org; Tue, 13 Feb 2018 07:32:31 -0500 Date: Tue, 13 Feb 2018 13:32:17 +0100 From: Kevin Wolf Message-ID: <20180213123217.GE5083@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v4 37/39] iotests: Test valid values of l2-cache-entry-size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz , Eric Blake , Anton Nefedov , "Denis V . Lunev" Am 05.02.2018 um 15:33 hat Alberto Garcia geschrieben: > The l2-cache-entry-size setting can only contain values that are > powers of two between 512 and the cluster size. > > Signed-off-by: Alberto Garcia > Reviewed-by: Eric Blake > Reviewed-by: Max Reitz > --- > tests/qemu-iotests/103 | 17 +++++++++++++++++ > tests/qemu-iotests/103.out | 3 +++ > 2 files changed, 20 insertions(+) > > diff --git a/tests/qemu-iotests/103 b/tests/qemu-iotests/103 > index d0cfab8844..7a2ca22803 100755 > --- a/tests/qemu-iotests/103 > +++ b/tests/qemu-iotests/103 > @@ -66,6 +66,14 @@ $QEMU_IO -c "open -o cache-size=1M,refcount-cache-size=2M $TEST_IMG" 2>&1 \ > $QEMU_IO -c "open -o cache-size=0,l2-cache-size=0,refcount-cache-size=0 $TEST_IMG" \ > 2>&1 | _filter_testdir | _filter_imgfmt > > +# Invalid cache entry sizes > +$QEMU_IO -c "open -o l2-cache-entry-size=256 $TEST_IMG" \ > + 2>&1 | _filter_testdir | _filter_imgfmt > +$QEMU_IO -c "open -o l2-cache-entry-size=300 $TEST_IMG" \ > + 2>&1 | _filter_testdir | _filter_imgfmt If you wanted to test non-power-of-two values here, it would be better to use a value that isn't < 512 at the same time. > +$QEMU_IO -c "open -o l2-cache-entry-size=128k $TEST_IMG" \ > + 2>&1 | _filter_testdir | _filter_imgfmt Kevin