diff options
| author | Greg Kurz | 2021-04-07 16:35:00 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2021-05-14 16:26:18 +0200 |
| commit | 61fc57bfc464c3584bd7ab810c86833661f0188c (patch) | |
| tree | e542b66633cf064e19dd33df1e5ea7af74a106ca /scripts | |
| parent | virtio-blk: Configure all host notifiers in a single MR transaction (diff) | |
| download | qemu-61fc57bfc464c3584bd7ab810c86833661f0188c.tar.gz qemu-61fc57bfc464c3584bd7ab810c86833661f0188c.tar.xz qemu-61fc57bfc464c3584bd7ab810c86833661f0188c.zip | |
virtio-scsi: Set host notifiers and callbacks separately
Host notifiers are guaranteed to be idle until the callbacks are
hooked up with virtio_queue_aio_set_host_notifier_handler(). They
thus don't need to be set or unset with the AioContext lock held.
Do this outside the critical section, like virtio-blk already
does : basically downgrading virtio_scsi_vring_init() to only
setup the host notifier and set the callback in the caller.
This will allow to batch addition/deletion of ioeventds in
a single memory transaction, which is expected to greatly
improve initialization time.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20210407143501.244343-4-groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
