[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers()
From: |
Stefan Hajnoczi |
Subject: |
Re: [RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers() |
Date: |
Mon, 29 Mar 2021 18:06:55 +0100 |
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-scsi and virtio-blk both fallback to userspace if host
> notifiers can't be set, e.g. file descriptor exhaustion, go for a
> warning rather than an error. Also make it oneshot to avoid flooding
> the logs since the message would be very likely the same for all
> virtqueues.
>
> Devices will be converted to use virtio_bus_set_host_notifiers() in
> separate patches.
>
> Signed-off-by: Greg Kurz <groug@kaod.org>
> ---
> include/hw/virtio/virtio-bus.h | 3 +++
> hw/virtio/virtio-bus.c | 36 ++++++++++++++++++++++++++++++++++
> 2 files changed, 39 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
- [RFC 0/8] virtio: Improve boot time of virtio-scsi-pci and virtio-blk-pci, Greg Kurz, 2021/03/25
- [RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers(), Greg Kurz, 2021/03/25
- Re: [RFC 2/8] virtio: Introduce virtio_bus_set_host_notifiers(),
Stefan Hajnoczi <=
- [RFC 3/8] virtio: Add API to batch set host notifiers, Greg Kurz, 2021/03/25
- Re: [RFC 3/8] virtio: Add API to batch set host notifiers, Stefan Hajnoczi, 2021/03/29
- Re: [RFC 3/8] virtio: Add API to batch set host notifiers, Greg Kurz, 2021/03/30
- Re: [RFC 3/8] virtio: Add API to batch set host notifiers, Stefan Hajnoczi, 2021/03/30
- Re: [RFC 3/8] virtio: Add API to batch set host notifiers, Greg Kurz, 2021/03/30
- Re: [RFC 3/8] virtio: Add API to batch set host notifiers, Stefan Hajnoczi, 2021/03/31
- Re: [RFC 3/8] virtio: Add API to batch set host notifiers, Greg Kurz, 2021/03/31
[RFC 4/8] virtio-pci: Batch add/del ioeventfds in a single MR transaction, Greg Kurz, 2021/03/25