vhost-user: add protocol feature negotiation
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 23 Sep 2015 04:19:56 +0000 (12:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 24 Sep 2015 13:27:52 +0000 (16:27 +0300)
commitdcb10c000cdd4d14f5ac4f07b04fb666494ef4a8
tree125005c6c7d27f69771f8e1b0d20b0c0d4eebc85
parent7305483a3d113456681ba6c6e8dd41513decd5f6
vhost-user: add protocol feature negotiation

Support a separate bitmask for vhost-user protocol features,
and messages to get/set protocol features.

Invoke them at init.

No features are defined yet.

[ leverage vhost_user_call for request handling -- Yuanhan Liu ]

Signed-off-by: Michael S. Tsirkin <address@hidden>
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>
docs/specs/vhost-user.txt
hw/net/vhost_net.c
hw/virtio/vhost-user.c
include/hw/virtio/vhost.h