]> 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:06 +0000 (21:15 +0300)
commit07c2a9c0fa1cff5fe9da15977bb0118ffc1b2aae
treef889fd8f4f21c175f6340d4bead6c0ee39f751d6
parent60f7b60429da8b3a53cac46f4d7ff1cc21f186d8
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