summaryrefslogtreecommitdiffstats
path: root/qemu-options.hx
diff options
context:
space:
mode:
authorYuanhan Liu2015-09-23 06:19:59 +0200
committerMichael S. Tsirkin2015-09-24 15:27:53 +0200
commitfc57fd9900dc6344b8833e7641f63cddc6840301 (patch)
treef5ab31f5309c8b23b38cdc6c63020c8ba3f8646f /qemu-options.hx
parentvhost-user: add VHOST_USER_GET_QUEUE_NUM message (diff)
downloadqemu-fc57fd9900dc6344b8833e7641f63cddc6840301.tar.gz
qemu-fc57fd9900dc6344b8833e7641f63cddc6840301.tar.xz
qemu-fc57fd9900dc6344b8833e7641f63cddc6840301.zip
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>
Diffstat (limited to 'qemu-options.hx')
0 files changed, 0 insertions, 0 deletions