summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin2015-09-23 06:19:56 +0200
committerMichael S. Tsirkin2015-09-24 15:27:52 +0200
commitdcb10c000cdd4d14f5ac4f07b04fb666494ef4a8 (patch)
tree125005c6c7d27f69771f8e1b0d20b0c0d4eebc85 /include
parentvhost-user: use VHOST_USER_XXX macro for switch statement (diff)
downloadqemu-dcb10c000cdd4d14f5ac4f07b04fb666494ef4a8.tar.gz
qemu-dcb10c000cdd4d14f5ac4f07b04fb666494ef4a8.tar.xz
qemu-dcb10c000cdd4d14f5ac4f07b04fb666494ef4a8.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/vhost.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
index dd510509eb..6467c73ecf 100644
--- a/include/hw/virtio/vhost.h
+++ b/include/hw/virtio/vhost.h
@@ -47,6 +47,7 @@ struct vhost_dev {
unsigned long long features;
unsigned long long acked_features;
unsigned long long backend_features;
+ unsigned long long protocol_features;
bool started;
bool log_enabled;
unsigned long long log_size;