From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5Gtn-0004Ck-R8 for qemu-devel@nongnu.org; Fri, 11 Nov 2016 13:50:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5Gtk-0003Fz-2H for qemu-devel@nongnu.org; Fri, 11 Nov 2016 13:50:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54532) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c5Gtj-0003Fd-TW for qemu-devel@nongnu.org; Fri, 11 Nov 2016 13:49:59 -0500 From: John Snow Date: Fri, 11 Nov 2016 13:49:48 -0500 Message-Id: <1478890195-30841-3-git-send-email-jsnow@redhat.com> In-Reply-To: <1478890195-30841-1-git-send-email-jsnow@redhat.com> References: <1478890195-30841-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PULL 2/9] ahci-test: Create smaller test ISO images List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, jsnow@redhat.com These can simply be the size of the number of sectors we're reading, plus one for a buffer. We don't need them to be any larger. Signed-off-by: John Snow Reviewed-by: Kevin Wolf Message-id: 1477970211-25754-3-git-send-email-jsnow@redhat.com Signed-off-by: John Snow --- tests/ahci-test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ahci-test.c b/tests/ahci-test.c index 70bcafa..a271cad 100644 --- a/tests/ahci-test.c +++ b/tests/ahci-test.c @@ -1494,9 +1494,10 @@ static void ahci_test_cdrom(int nsectors, bool dma) .atapi_dma = dma, .post_cb = ahci_cb_cmp_buff, }; + uint64_t iso_size = ATAPI_SECTOR_SIZE * (nsectors + 1); /* Prepare ISO and fill 'tx' buffer */ - fd = prepare_iso(1024 * 1024, &tx, &iso); + fd = prepare_iso(iso_size, &tx, &iso); opts.opaque = tx; /* Standard startup wonkery, but use ide-cd and our special iso file */ -- 2.7.4