vhost-user: add a new message to disable/enable a specific virt queue.
commit7263a0ad7899994b719ebed736a1119cc2e08110
authorChangchun Ouyang <changchun.ouyang@intel.com>
Wed, 23 Sep 2015 04:20:01 +0000 (23 12:20 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 Sep 2015 13:27:53 +0000 (24 16:27 +0300)
tree6e832134bdf7c95b2a8ba0e9f03b47c0f7a216b5
parentb931bfbf042983f311b3b09894d8030b2755a638
vhost-user: add a new message to disable/enable a specific virt queue.

Add a new message, VHOST_USER_SET_VRING_ENABLE, to enable or disable
a specific virt queue, which is similar to attach/detach queue for
tap device.

virtio driver on guest doesn't have to use max virt queue pair, it
could enable any number of virt queue ranging from 1 to max virt
queue pair.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.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>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
docs/specs/vhost-user.txt
hw/net/vhost_net.c
hw/net/virtio-net.c
hw/virtio/vhost-user.c
include/hw/virtio/vhost-backend.h
include/net/vhost_net.h