Re: virtio-net: why not always to set avail->flags to VRING_AVAIL_F_NO_INTERRUPT

2015-06-04 Thread Rusty Russell
Linhaifeng writes: > On 2015/6/4 9:13, Rusty Russell wrote: >> Linhaifeng writes: >>> Hi, >>> >>> I'm a newbie and have a question about vring_new_virtqueue function. >>> >>> Why we set avail->flags to VRING_AVAIL_F_NO_INTERRUPT when no callbacks? >>> I think we should set avail->flags to VRING_A

Re: [PATCH] virtio_pci: Clear stale cpumask when setting irq affinity

2015-06-04 Thread Michael S. Tsirkin
On Thu, Jun 04, 2015 at 04:41:44PM +0800, Jiang Liu wrote: > The cpumask vp_dev->msix_affinity_masks[info->msix_vector] may contain > staled information when vp_set_vq_affinity() gets called, so clear it > before setting the new cpu bit mask. > > Signed-off-by: Jiang Liu I have queued this up. T

[PATCH] virtio_pci: Clear stale cpumask when setting irq affinity

2015-06-04 Thread Jiang Liu
The cpumask vp_dev->msix_affinity_masks[info->msix_vector] may contain staled information when vp_set_vq_affinity() gets called, so clear it before setting the new cpu bit mask. Signed-off-by: Jiang Liu --- drivers/virtio/virtio_pci_common.c |1 + 1 file changed, 1 insertion(+) diff --git a