virtio-scsi: Forbid devices with different iothreads sharing a blockdev
authorAlberto Garcia <berto@igalia.com>
Tue, 22 Jan 2019 15:53:23 +0000 (17:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 1 Feb 2019 12:46:45 +0000 (13:46 +0100)
commiteb97813ff5fd5bdffc8ed9f5be5a3a50eae70a2c
treef8d1d98e37df7014da91b12407133962f11e47f7
parent3ff35ba391134e4e43ab96152deb38a62e62f858
virtio-scsi: Forbid devices with different iothreads sharing a blockdev

This patch forbids attaching a disk to a SCSI device if its using a
different AioContext. 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
tests/qemu-iotests/240.out