vhost-user: add VHOST_USER_RESET_DEVICE to reset devices
commitd91d57e604edc128be302b60dabba6a34f0e0f0f
authorRaphael Norwitz <raphael.norwitz@nutanix.com>
Tue, 29 Oct 2019 21:38:02 +0000 (29 17:38 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Jan 2020 12:03:03 +0000 (5 07:03 -0500)
tree9f47f687e83e9a1242dc139490e747d49ef308f1
parentf2a7e8f170252081ff48b99f34dbd1f0211d7938
vhost-user: add VHOST_USER_RESET_DEVICE to reset devices

Add a VHOST_USER_RESET_DEVICE message which will reset the vhost user
backend. Disabling all rings, and resetting all internal state, ready
for the backend to be reinitialized.

A backend has to report it supports this features with the
VHOST_USER_PROTOCOL_F_RESET_DEVICE protocol feature bit. If it does
so, the new message is used instead of sending a RESET_OWNER which has
had inconsistent implementations.

Signed-off-by: David Vrabel <david.vrabel@nutanix.com>
Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <1572385083-5254-2-git-send-email-raphael.norwitz@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
docs/interop/vhost-user.rst
hw/virtio/vhost-user.c