virtio-ring: move queue_index to vring_virtqueue
authorJason Wang <jasowang@redhat.com>
Tue, 28 Aug 2012 11:54:13 +0000 (13:54 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Sep 2012 05:35:15 +0000 (14:35 +0930)
commit17bb6d40880d4178f5f8a75900ed8c9ff47d3fb2
treef9888385b33c144f909eff14713a328dc72296f2
parent7a23eb28fa645f1f0c2ec38274c11bc78c50c047
virtio-ring: move queue_index to vring_virtqueue

Instead of storing the queue index in transport-specific virtio structs,
this patch moves them to vring_virtqueue and introduces an helper to get
the value.  This lets drivers simplify their management and tracing of
virtqueues.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/lguest_device.c
drivers/remoteproc/remoteproc_virtio.c
drivers/s390/kvm/kvm_virtio.c
drivers/virtio/virtio_mmio.c
drivers/virtio/virtio_pci.c
drivers/virtio/virtio_ring.c
include/linux/virtio.h
include/linux/virtio_ring.h