[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen master] ahci-test: Create smaller test ISO images
commit 53c05e6c20509adcff40fe1c7a02210354fe53f7 Author: John Snow <jsnow@xxxxxxxxxx> AuthorDate: Mon Nov 14 11:15:54 2016 -0500 Commit: John Snow <jsnow@xxxxxxxxxx> CommitDate: Mon Nov 14 11:15:54 2016 -0500 ahci-test: Create smaller test ISO images 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 <jsnow@xxxxxxxxxx> Reviewed-by: Kevin Wolf <kwolf@xxxxxxxxxx> Message-id: 1477970211-25754-3-git-send-email-jsnow@xxxxxxxxxx Signed-off-by: John Snow <jsnow@xxxxxxxxxx> --- 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 */ -- generated by git-patchbot for /home/xen/git/qemu-xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |