virtio-scsi: Move BlockBackend back to the main AioContext on unplug
authorAlberto Garcia <berto@igalia.com>
Tue, 22 Jan 2019 15:53:21 +0000 (17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:46:45 +0000 (13:46 +0100)
commita6f230c8d13a7ff3a0c7f1097412f44bfd9eff0b
tree29635dac7b8d16c49a65ef982bef8a5a4c9506c2
parent14632122b82150d42cefac04a219bbead59bc4a7
virtio-scsi: Move BlockBackend back to the main AioContext on unplug

This fixes a crash when attaching a disk to a SCSI device using
iothreads, then detaching it and reattaching it again. Test case
included.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi/virtio-scsi.c
tests/qemu-iotests/240 [new file with mode: 0755]
tests/qemu-iotests/240.out [new file with mode: 0644]
tests/qemu-iotests/group