]> git.proxmox.com Git - mirror_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)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Nov 2023 12:08:48 +0000 (13:08 +0100)
commitcc610857bbd3551f4b86ae2299336b5d9aa0db2b
tree9bc5a3bcdbd286c1812681f9d7d630db954739a7
parent7d7512019fc40c577e2bdd61f114f31a9eb84a8e
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>
tests/qtest/ahci-test.c