Re: [RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers()

2021-03-29 Thread Stefan Hajnoczi
On Thu, Mar 25, 2021 at 04:07:29PM +0100, Greg Kurz wrote: > Multiqueue devices such as virtio-scsi or virtio-blk, all open-code the > same pattern to setup/tear down host notifiers of the request virtqueues. > Consolidate the pattern in a new virtio_bus_set_host_notifiers() API. > Since virtio-scs

[RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers()

2021-03-25 Thread Greg Kurz
Multiqueue devices such as virtio-scsi or virtio-blk, all open-code the same pattern to setup/tear down host notifiers of the request virtqueues. Consolidate the pattern in a new virtio_bus_set_host_notifiers() API. Since virtio-scsi and virtio-blk both fallback to userspace if host notifiers can't