]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio-ring: move queue_index to vring_virtqueue
authorJason Wang <jasowang@redhat.com>
Tue, 28 Aug 2012 11:54:13 +0000 (13:54 +0200)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 00:33:30 +0000 (10:33 +1000)
commit0c7893423399470b47af13e1c4ea3fce41015248
tree8a0ac3871ec5a70f44083fc6852362c05f20d7dc
parented9a1897a5ae8898c78a225f026c9bc4abd33c7f
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