iotests: Add test for reset/AioContext switches with NBD exports
commite8fce34eccf68a32f4ecf2c6f121ff2ac383d6bf
authorKevin Wolf <kwolf@redhat.com>
Thu, 14 Mar 2024 16:58:25 +0000 (14 17:58 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 Mar 2024 12:12:51 +0000 (18 13:12 +0100)
tree224322c2d9628cbeef9e065dd6793d1f80cfefd3
parent9c707525cbb1dd1e56876e45c70c0c08f2876d41
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>
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]