Yuanhan Liu fc57fd9900 vhost: introduce vhost_backend_get_vq_index method
Minusing the idx with the base(dev->vq_index) for vhost-kernel, and
then adding it back for vhost-user doesn't seem right. Here introduces
a new method vhost_backend_get_vq_index() for getting the right vq
index for following vhost messages calls.

Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
2015-09-24 16:27:53 +03:00
..
2015-09-10 11:21:21 +03:00
2015-09-14 14:39:49 +01:00
2013-06-07 14:55:33 +02:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2015-09-14 14:39:49 +01:00
2015-09-07 10:39:30 +01:00
2015-09-09 15:34:53 +02:00
2013-04-08 18:13:10 +02:00
2013-04-08 18:13:10 +02:00
2015-06-11 10:13:30 +01:00
2015-09-07 10:39:30 +01:00
2015-09-10 12:04:27 +00:00
2015-09-07 10:39:28 +01:00
2013-04-08 18:13:10 +02:00
2015-09-10 18:25:52 +01:00
2013-04-08 18:13:10 +02:00
2015-01-15 10:44:13 +03:00
2014-10-23 16:41:25 +02:00
2014-10-24 12:19:11 +01:00
2015-07-13 14:42:24 +03:00
2013-04-08 18:13:10 +02:00
2014-05-28 17:36:21 +02:00
2013-05-01 20:55:21 +04:00
2015-07-06 12:15:14 -06:00
2015-04-30 16:05:48 +03:00