qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about scsi device hotplug (e.g scsi-hd)


From: Paolo Bonzini
Subject: Re: Question about scsi device hotplug (e.g scsi-hd)
Date: Thu, 2 Apr 2020 10:49:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

On 02/04/20 07:37, Markus Armbruster wrote:
> Paolo Bonzini <address@hidden> writes:
> 
>> On 01/04/20 17:09, Stefan Hajnoczi wrote:
>>>> What do you think about it?
>>>
>>> Maybe aio_disable_external() is needed to postpone device emulation
>>> until after realize has finished?
>>>
>>> Virtqueue kick ioeventfds are marked "external" and won't be processed
>>> while external events are disabled.  See also
>>> virtio_queue_aio_set_host_notifier_handler() ->
>>> aio_set_event_notifier().
>>
>> Yes, I think Stefan is right.
> 
> Is this issue limited to SCSI devices?

Yes, because they (and more specifically virtio-scsi) are the only ones
that can be processed

1) outside the BQL

2) by a device other than themselves (in this case, by the adapter).

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]