]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest: ahci-test: add test exposing reset issue with pending callback
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 6 Sep 2023 13:09:22 +0000 (15:09 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 19 Nov 2023 18:15:23 +0000 (21:15 +0300)
commit8e8cae1de88f4c79a5f56ea27731c03dc5d298fc
tree10d880a8ba01338b29ef09b86d43d9fb494aba8f
parent471a9310fd92b3e1a33d06dba2e0cf0f0b5590e0
tests/qtest: ahci-test: add test exposing reset issue with pending callback

Before commit "hw/ide: reset: cancel async DMA operation before
resetting state", this test would fail, because a reset with a
pending write operation would lead to an unsolicited write to the
first sector of the disk.

The test writes a pattern to the beginning of the disk and verifies
that it is still intact after a reset with a pending operation. It
also checks that the pending operation actually completes correctly.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20230906130922.142845-2-f.ebner@proxmox.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit cc610857bbd3551f4b86ae2299336b5d9aa0db2b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/qtest/ahci-test.c