From: "Denis V. Lunev" <den@openvz.org>
To: qemu-devel@nongnu.org
Cc: qemu-block@nongnu.org, "John Snow" <jsnow@redhat.com>,
"Denis V. Lunev" <den@openvz.org>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Subject: [PULL v2 2/7] tests/qtest/ide-test: add a multi-sector ATAPI DMA read test
Date: Tue, 4 Aug 2026 19:00:09 +0200 [thread overview]
Message-ID: <20260804170015.3128363-3-den@openvz.org> (raw)
In-Reply-To: <20260804170015.3128363-1-den@openvz.org>
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>
CC: Stefan Hajnoczi <stefanha@redhat.com>
CC: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
---
tests/qtest/ide-test.c | 6 ++++++
1 file changed, 6 insertions(+)
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();
--
2.53.0
next prev parent reply other threads:[~2026-08-04 17:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 17:00 [PULL v2 0/7] IDE patches Denis V. Lunev
2026-08-04 17:00 ` [PULL v2 1/7] tests/qtest/ide-test: parametrize the ATAPI CD-ROM read test Denis V. Lunev
2026-08-04 17:00 ` Denis V. Lunev [this message]
2026-08-04 17:00 ` [PULL v2 3/7] tests/qtest/ide-test: cover raw (2352-byte) ATAPI CD reads Denis V. Lunev
2026-08-04 17:00 ` [PULL v2 4/7] tests/qtest/libqos/ahci: support raw (2352-byte) READ CD Denis V. Lunev
2026-08-04 17:00 ` [PULL v2 5/7] tests/qtest/ahci: cover raw (2352-byte) ATAPI CD reads Denis V. Lunev
2026-08-04 17:00 ` [PULL v2 6/7] hw/ide/atapi: read the whole elementary transfer asynchronously Denis V. Lunev
2026-08-04 17:00 ` [PULL v2 7/7] tests/qtest/ahci: regression test for ATAPI read vs. drain Denis V. Lunev
2026-08-05 0:55 ` [PULL v2 0/7] IDE patches Stefan Hajnoczi
2026-08-12 12:48 ` Denis V. Lunev
2026-08-12 14:32 ` Stefan Hajnoczi
2026-08-12 14:34 ` Denis V. Lunev
2026-08-12 16:19 ` Richard Henderson
2026-08-13 19:16 ` Denis V. Lunev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260804170015.3128363-3-den@openvz.org \
--to=den@openvz.org \
--cc=jsnow@redhat.com \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.