vhost-user: use VHOST_USER_XXX macro for switch statement
commit7305483a3d113456681ba6c6e8dd41513decd5f6
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 23 Sep 2015 04:19:55 +0000 (23 12:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 Sep 2015 13:27:52 +0000 (24 16:27 +0300)
tree0cac4e62c0496511521eeabc1be9da057a7d42e0
parent542571d523268357fd8f5b1a523ba2a6191c4c18
vhost-user: use VHOST_USER_XXX macro for switch statement

So that we could let vhost_user_call to handle extented requests,
such as VHOST_USER_GET/SET_PROTOCOL_FEATURES, instead of invoking
vhost_user_read/write and constructing the msg again by ourself.

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: Marcel Apfelbaum <marcel@redhat.com>
Tested-by: Marcel Apfelbaum <marcel@redhat.com>
hw/virtio/vhost-user.c