Re: [PATCHv4 2/2] vhost_net: a kernel-level virtio server
From: Michael S. Tsirkin
Date: Wed Aug 26 2009 - 13:00:23 EST
On Tue, Aug 25, 2009 at 04:16:34PM +0300, Michael S. Tsirkin wrote:
> > > + /* If they don't want an interrupt, don't send one, unless empty. */
> > > + if ((flags & VRING_AVAIL_F_NO_INTERRUPT) && vq->inflight)
> > > + return;
> >
> > And I wouldn't support notify on empty at all, TBH.
>
> If I don't, virtio net in guest uses a timer, which might be expensive.
> Will need to check what this does.
>
> > It should
> > definitely be conditional on the guest accepting the NOTIFY_ON_EMPTY
> > feature.
lguest does not do it this way though, do it?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/