vhost-user: Introduce a new protocol feature REPLY_ACK.
commitca525ce5618bea94db0d8fa3fde0b3066f8cd3f0
authorPrerna Saxena <prerna.saxena@nutanix.com>
Fri, 5 Aug 2016 10:53:50 +0000 (5 03:53 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 10 Aug 2016 14:47:29 +0000 (10 17:47 +0300)
tree48df2b36404d54c804be59c7721565a2dbda6170
parentca10203cde7cf37623e0e77da1696ba1fbce5d84
vhost-user: Introduce a new protocol feature REPLY_ACK.

This introduces the VHOST_USER_PROTOCOL_F_REPLY_ACK.

If negotiated, client applications should send a u64 payload in
response to any message that contains the "need_reply" bit set
on the message flags. Setting the payload to "zero" indicates the
command finished successfully. Likewise, setting it to "non-zero"
indicates an error.

Currently implemented only for SET_MEM_TABLE.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Prerna Saxena <prerna.saxena@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/specs/vhost-user.txt
hw/virtio/vhost-user.c