[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 5/9] virtio-blk: multiqueue batch notify
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 5/9] virtio-blk: multiqueue batch notify |
Date: |
Fri, 27 May 2016 14:38:54 -0700 |
User-agent: |
Mutt/1.6.0 (2016-04-01) |
On Sat, May 21, 2016 at 06:02:52PM +0200, Paolo Bonzini wrote:
>
>
> On 21/05/2016 01:40, Stefan Hajnoczi wrote:
> > + while ((i = find_next_bit(s->batch_notify_vqs, nvqs, i)) < nvqs) {
> > + VirtQueue *vq = virtio_get_queue(vdev, i);
> > +
> > + bitmap_clear(s->batch_notify_vqs, i, 1);
>
> clear_bit?
Ignorance on my part. Thanks!
> > + if (s->dataplane_started && !s->dataplane_disabled) {
> > + virtio_blk_data_plane_notify(s->dataplane, vq);
> > + } else {
> > + virtio_notify(vdev, vq);
> > + }
>
> The find_next_bit loop is not very efficient and could use something
> similar to commit 41074f3 ("omap_intc: convert ffs(3) to ctz32() in
> omap_inth_sir_update()", 2015-04-28). But it can be improved later.
Cool, will try that for inspiration in v2.
Stefan
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH 0/9] virtio-blk: multiqueue support, Stefan Hajnoczi, 2016/05/20
- [Qemu-devel] [PATCH 4/9] virtio-blk: add VirtIOBlockConf->num_queues, Stefan Hajnoczi, 2016/05/20
- [Qemu-devel] [PATCH 6/9] vmstate: add VMSTATE_VARRAY_UINT32_ALLOC, Stefan Hajnoczi, 2016/05/20
- [Qemu-devel] [PATCH 7/9] virtio-blk: live migrate s->rq with multiqueue, Stefan Hajnoczi, 2016/05/20
- [Qemu-devel] [PATCH 9/9] virtio-blk: add num-queues device property, Stefan Hajnoczi, 2016/05/20
- [Qemu-devel] [PATCH 8/9] virtio-blk: dataplane multiqueue support, Stefan Hajnoczi, 2016/05/20