Re: [Qemu-devel] [PATCH 0/3] virtio: don't poll masked vectors with irqfd

2012-12-19 Thread Michael S. Tsirkin
On Wed, Dec 19, 2012 at 04:53:22PM +0800, Asias He wrote: > On 12/18/2012 08:39 PM, Michael S. Tsirkin wrote: > > At the moment when vector is masked virtio will poll it > > in userspace, even if it is handled by irqfd. > > This is done in order to update pending bits, but > > it's not really requi

Re: [Qemu-devel] [PATCH 0/3] virtio: don't poll masked vectors with irqfd

2012-12-19 Thread Asias He
On 12/18/2012 08:39 PM, Michael S. Tsirkin wrote: > At the moment when vector is masked virtio will poll it > in userspace, even if it is handled by irqfd. > This is done in order to update pending bits, but > it's not really required until someone reads the pending bits. > On the other hand this r

Re: [Qemu-devel] [PATCH 0/3] virtio: don't poll masked vectors with irqfd

2012-12-18 Thread Michael S. Tsirkin
On Tue, Dec 18, 2012 at 02:20:20PM +0200, Michael S. Tsirkin wrote: > At the moment when vector is masked virtio will poll it > in userspace, even if it is handled by irqfd. > This is done in order to update pending bits, but > it's not really required until someone reads the pending bits. > On the

[Qemu-devel] [PATCH 0/3] virtio: don't poll masked vectors with irqfd

2012-12-18 Thread Michael S. Tsirkin
At the moment when vector is masked virtio will poll it in userspace, even if it is handled by irqfd. This is done in order to update pending bits, but it's not really required until someone reads the pending bits. On the other hand this read results in extra io thread wakeups. As we only implemen