]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Add test for reset/AioContext switches with NBD exports
authorKevin Wolf <kwolf@redhat.com>
Thu, 14 Mar 2024 16:58:25 +0000 (17:58 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 19 Mar 2024 16:50:08 +0000 (19:50 +0300)
commitddf4412bf4cced5701e1cfe8cc3c648f63c2ca90
tree2e169c2164b53b68edeb5a4be6b4f2f7a22ccf0e
parenta69a002dcd6059e5da222695e94223fe65fbca70
iotests: Add test for reset/AioContext switches with NBD exports

This replicates the scenario in which the bug was reported.
Unfortunately this relies on actually executing a guest (so that the
firmware initialises the virtio-blk device and moves it to its
configured iothread), so this can't make use of the qtest accelerator
like most other test cases. I tried to find a different easy way to
trigger the bug, but couldn't find one.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20240314165825.40261-3-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit e8fce34eccf68a32f4ecf2c6f121ff2ac383d6bf)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/qemu-iotests/tests/iothreads-nbd-export [new file with mode: 0755]
tests/qemu-iotests/tests/iothreads-nbd-export.out [new file with mode: 0644]