qemu-devel
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]