Files
qemu/tests/qtest
Denis V. Lunev cb7bc10385 tests/qtest/ahci: test ATAPI read completing after engine restart
Add a regression test for the crash that occurs when a buffered ATAPI
read completes after the command engine has been restarted. Issue an
ATAPI READ_10 against a blkdebug-backed CD, suspend the backend read so
it stays in flight, stop and restart the port's command engine (which
re-maps the command list and clears cur_cmd), then release the read.

The PIO and DMA reply paths fault in different AHCI helpers
(ahci_pio_transfer() vs ahci_dma_rw_buf()), so cover both. The DMA
variant is the reliable guard: on engine restart check_cmd() can re-arm
cur_cmd before the old read completes, so the PIO variant does not fault
in every build.

The test only asserts that qemu survives a subsequent register access;
if the blkdebug breakpoint ever failed to park the read it would pass
without exercising the bug, as with the existing break/resume tests.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Message-ID: <20260619112158.304782-3-den@openvz.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
2026-07-07 17:10:20 +02:00
..
2025-11-14 13:18:04 +00:00
2025-11-14 13:18:04 +00:00
2023-09-08 13:08:52 +03:00
2026-06-29 11:03:47 +01:00
2026-05-19 17:25:48 +02:00
2023-03-10 17:26:47 +08:00
2026-06-06 09:15:23 +04:00
2026-06-06 09:15:23 +04:00
2025-03-11 22:40:47 +10:00
2025-11-25 09:21:41 +01:00
2026-02-05 05:06:46 -05:00
2026-06-06 09:15:23 +04:00
2024-01-30 21:20:20 +03:00
2024-12-20 17:44:56 +01:00
2026-06-01 19:29:15 +00:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2026-06-12 09:21:28 +09:00