qemu-e2k/include/hw/virtio
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
..
dataplane virtio: use standard virtio_ring.h 2015-02-26 13:04:03 +01:00
vhost-backend.h vhost: introduce vhost_backend_get_vq_index method 2015-09-24 16:27:53 +03:00
vhost-scsi.h vhost-scsi: move qdev properties into vhost-scsi.c 2015-06-10 18:15:34 +02:00
vhost.h vhost-user: add VHOST_USER_GET_QUEUE_NUM message 2015-09-24 16:27:52 +03:00
virtio-9p.h
virtio-access.h virtio: avoid leading underscores for helpers 2015-09-10 11:06:05 +03:00
virtio-balloon.h balloon: add a feature bit to let Guest OS deflate balloon on oom 2015-06-23 17:08:21 +02:00
virtio-blk.h virtio-blk: correctly dirty guest memory 2015-04-08 10:39:18 +01:00
virtio-bus.h virtio: device_plugged() can fail 2015-05-31 16:44:12 +02:00
virtio-gpu.h virtio-gpu: use virtio_instance_init_common, fixup properties 2015-07-07 11:23:18 +02:00
virtio-input.h virtio-input: add input routing support 2015-07-03 12:21:11 +02:00
virtio-net.h virtio-net: remove useless codes 2015-08-13 14:08:29 +03:00
virtio-rng.h virtio-rng: trigger timer only when guest requests for entropy 2015-07-17 19:05:16 +05:30
virtio-scsi.h virtio-scsi: move qdev properties into virtio-scsi.c 2015-06-10 18:15:34 +02:00
virtio-serial.h virtio-serial-bus: move qdev properties into virtio-serial-bus.c 2015-06-10 18:15:34 +02:00
virtio.h virtio: avoid leading underscores for helpers 2015-09-10 11:06:05 +03:00