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 (15:05 +0930)
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>

No differences found