All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Denis V. Lunev" <den@openvz.org>
To: qemu-block@nongnu.org, qemu-devel@nongnu.org
Cc: den@openvz.org, "Stefan Hajnoczi" <stefanha@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Subject: [PULL 3/8] tests/qtest/ide-test: add a multi-sector ATAPI DMA read test
Date: Thu, 30 Jul 2026 10:13:19 +0200	[thread overview]
Message-ID: <20260730081325.1816193-4-den@openvz.org> (raw)
In-Reply-To: <20260730081325.1816193-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 0fcfd0688c..2c674edf15 100644
--- a/tests/qtest/ide-test.c
+++ b/tests/qtest/ide-test.c
@@ -1159,6 +1159,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;
@@ -1218,6 +1223,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



  parent reply	other threads:[~2026-07-30  8:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  8:13 [PULL 0/8] IDE patches Denis V. Lunev
2026-07-30  8:13 ` [PULL 1/8] MAINTAINERS: add myself to IDE maintainers Denis V. Lunev
2026-07-30 13:52   ` Philippe Mathieu-Daudé
2026-07-30 14:55   ` Stefan Hajnoczi
2026-07-30 15:15     ` Denis V. Lunev
2026-07-30 15:21       ` Daniel P. Berrangé
2026-07-31 13:45     ` Denis V. Lunev
2026-07-31 20:18       ` Stefan Hajnoczi
2026-07-31 21:17         ` Denis V. Lunev
2026-08-02 14:13           ` Philippe Mathieu-Daudé
2026-08-03 18:02             ` Stefan Hajnoczi
2026-08-03  4:47   ` Markus Armbruster
2026-07-30  8:13 ` [PULL 2/8] tests/qtest/ide-test: parametrize the ATAPI CD-ROM read test Denis V. Lunev
2026-07-30 15:18   ` Thomas Huth
2026-07-30  8:13 ` Denis V. Lunev [this message]
2026-07-30  8:13 ` [PULL 4/8] tests/qtest/ide-test: cover raw (2352-byte) ATAPI CD reads Denis V. Lunev
2026-07-30  8:13 ` [PULL 5/8] tests/qtest/libqos/ahci: support raw (2352-byte) READ CD Denis V. Lunev
2026-07-30  8:13 ` [PULL 6/8] tests/qtest/ahci: cover raw (2352-byte) ATAPI CD reads Denis V. Lunev
2026-07-30  8:13 ` [PULL 7/8] hw/ide/atapi: read the whole elementary transfer asynchronously Denis V. Lunev
2026-07-30  8:13 ` [PULL 8/8] tests/qtest/ahci: regression test for ATAPI read vs. drain Denis V. Lunev
2026-08-04  8:12 ` [PULL 0/8] IDE patches Michael Tokarev

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=20260730081325.1816193-4-den@openvz.org \
    --to=den@openvz.org \
    --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.