aboutsummaryrefslogtreecommitdiff
path: root/hw/core/generic-loader.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2021-04-07 16:35:00 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-05-14 10:26:18 -0400
commit61fc57bfc464c3584bd7ab810c86833661f0188c (patch)
treee542b66633cf064e19dd33df1e5ea7af74a106ca /hw/core/generic-loader.c
parentd0267da614890b8f817364ae25850cdbb580a569 (diff)
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 'hw/core/generic-loader.c')
0 files changed, 0 insertions, 0 deletions