[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different
From: |
Alberto Garcia |
Subject: |
Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev |
Date: |
Wed, 23 Jan 2019 17:16:42 +0100 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Wed 23 Jan 2019 04:47:30 PM CET, Paolo Bonzini wrote:
>> You mean a common function with the code below?
>>
>>>> + ctx = blk_get_aio_context(sd->conf.blk);
>>>> + if (ctx != s->ctx && ctx != qemu_get_aio_context()) {
>>>> + error_setg(errp, "Cannot attach a blockdev that is using "
>>>> + "a different iothread");
>>>> + return;
>>>> + }
>>
>> Who else would be the user?
>
> If it isn't, probably virtio-blk should be using too.
I agree, but that's the problem that I mentioned on the cover letter.
In the virtio-blk case I don't know how to tell that the block device is
using a different iothread during device_add, because the iothread is
not set during realize() but by virtio_blk_data_plane_start() that
happens only when I reboot the guest.
Berto
- [Qemu-devel] [PATCH 0/3] iothread-related fixes for virtio-scsi, Alberto Garcia, 2019/01/22
- [Qemu-devel] [PATCH 2/3] scsi-disk: Acquire the AioContext in scsi_*_realize(), Alberto Garcia, 2019/01/22
- [Qemu-devel] [PATCH 1/3] virtio-scsi: Move BlockBackend back to the main AioContext on unplug, Alberto Garcia, 2019/01/22
- [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Alberto Garcia, 2019/01/22
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Paolo Bonzini, 2019/01/23
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Alberto Garcia, 2019/01/23
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Paolo Bonzini, 2019/01/23
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev,
Alberto Garcia <=
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Kevin Wolf, 2019/01/24
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Alberto Garcia, 2019/01/28
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Kevin Wolf, 2019/01/28
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Alberto Garcia, 2019/01/28
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Kevin Wolf, 2019/01/28
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Alberto Garcia, 2019/01/28
- Re: [Qemu-devel] [PATCH 3/3] virtio-scsi: Forbid devices with different iothreads sharing a blockdev, Kevin Wolf, 2019/01/28
- Re: [Qemu-devel] [PATCH 0/3] iothread-related fixes for virtio-scsi, Kevin Wolf, 2019/01/28