diff options
| author | Denis V. Lunev <den@openvz.org> | 2026-06-19 02:28:51 +0200 |
|---|---|---|
| committer | Michael Tokarev <mjt@tls.msk.ru> | 2026-08-17 12:26:36 +0300 |
| commit | ec515ffc91f6fbadad1091cd35422fa58d98b95c (patch) | |
| tree | fa76c289fd7716cadc960f2cdd901c82da7722ea | |
| parent | 59a98c1a85197cedfff0bcecae65268284785699 (diff) | |
| download | qemu-ec515ffc91f6fbadad1091cd35422fa58d98b95c.tar.gz qemu-ec515ffc91f6fbadad1091cd35422fa58d98b95c.zip | |
tests/qtest/ide-test: add a multi-sector ATAPI DMA read test
test_cdrom_pio_large() already exercises a multi-sector PIO read.
Add the DMA counterpart through the same cdrom_read_impl() helper so
the multi-block ATAPI DMA read path gets equivalent coverage.
Signed-off-by: Denis V. Lunev <den@openvz.org>
(cherry picked from commit fe543c2d787a611f1efa34107818a8eee90bb5dc)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
| -rw-r--r-- | tests/qtest/ide-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qtest/ide-test.c b/tests/qtest/ide-test.c index c97bc17b67..6e59197566 100644 --- a/tests/qtest/ide-test.c +++ b/tests/qtest/ide-test.c @@ -1158,6 +1158,11 @@ static void test_cdrom_dma(void) cdrom_read_impl(1, CDROM_DMA); } +static void test_cdrom_dma_large(void) +{ + cdrom_read_impl(BYTE_COUNT_LIMIT * 4 / ATAPI_BLOCK_SIZE, CDROM_DMA); +} + int main(int argc, char **argv) { const char *base; @@ -1217,6 +1222,7 @@ int main(int argc, char **argv) qtest_add_func("/ide/cdrom/pio", test_cdrom_pio); qtest_add_func("/ide/cdrom/pio_large", test_cdrom_pio_large); qtest_add_func("/ide/cdrom/dma", test_cdrom_dma); + qtest_add_func("/ide/cdrom/dma_large", test_cdrom_dma_large); ret = g_test_run(); |
