iotests: Add iothread cases to 155
authorKevin Wolf <kwolf@redhat.com>
Tue, 10 Mar 2020 11:38:30 +0000 (12:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Mar 2020 14:54:38 +0000 (15:54 +0100)
commit6a5f6403a11307794ec79d277a065c137cfc12b2
tree05055cc170db8749f733ad35404b0f2070b1277e
parent30dd65f307b647eef8156c4a33bd007823ef85cb
iotests: Add iothread cases to 155

This patch adds test cases for attaching the backing chain to a mirror
job target right before finalising the job, where the image is in a
non-mainloop AioContext (i.e. the backing chain needs to be moved to the
AioContext of the mirror target).

This requires switching the test case from virtio-blk to virtio-scsi
because virtio-blk only actually starts using the iothreads when the
guest driver initialises the device (which never happens in a test case
without a guest OS). virtio-scsi always keeps its block nodes in the
AioContext of the the requested iothread without guest interaction.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200310113831.27293-7-kwolf@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/155
tests/qemu-iotests/155.out