On Mon, 24 Sep 2012 12:09:00 +0200
Avi Kivity <[email protected]> wrote:
> > while (vcpu->request) {
> > xchg(vcpu->request, request);
> >
> > for_each_set_bit(request) {
> > clear_bit(X);
> >
> > ......
> > }
> >
> > }
>
> In fact I had something like that in one of the earlier versions, but it
> was problematic. I'll try to see what the issue was.
Unless there are many requests, the cost of for_each_set_bit() and a few
added code may exceed that of the original code.
(Looping using __ffs() is an alternative because requests is "long".)
So I wanted to know the most common requests pattern.
Thanks,
Takuya
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html