Re: [net-next RFC V5 2/5] virtio_ring: move queue_index to vring_virtqueue

From
Paolo Bonzini <pbonzini@redhat.com>
Date
2012-07-26 08:20:14
Also in
kvm, lkml, netdev
Reply to
Sasha Levin, 2012-07-05
Il 05/07/2012 13:40, Sasha Levin ha scritto:
quoted hunk ↗ jump to hunk
@@ -275,7 +274,7 @@ static void vm_del_vq(struct virtqueue *vq)
        vring_del_virtqueue(vq);
 
        /* Select and deactivate the queue */
-       writel(info->queue_index, vm_dev->base + VIRTIO_MMIO_QUEUE_SEL);
+       writel(virtqueue_get_queue_index(vq), vm_dev->base + VIRTIO_MMIO_QUEUE_SEL);
        writel(0, vm_dev->base + VIRTIO_MMIO_QUEUE_PFN);
 
This accesses vq after vring_del_virtqueue has freed it.

Paolo
Thread (46 messages) 46 messages, 10 authors, last reply 2012-08-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help