[PATCH 0/2] vhost-user: add message for device reset

Raphael Norwitz posted 2 patches 4 years, 5 months ago
Test asan passed
Test checkpatch passed
Test FreeBSD passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test docker-quick@centos7 passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1572385083-5254-1-git-send-email-raphael.norwitz@nutanix.com
Maintainers: Fam Zheng <fam@euphon.net>, "Michael S. Tsirkin" <mst@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
docs/interop/vhost-user.rst | 15 +++++++++++++++
hw/scsi/vhost-user-scsi.c   | 24 ++++++++++++++++++++++++
hw/virtio/vhost-user.c      |  8 +++++++-
3 files changed, 46 insertions(+), 1 deletion(-)
[PATCH 0/2] vhost-user: add message for device reset
Posted by Raphael Norwitz 4 years, 5 months ago
I have updated patches [1] sent by David Vrabel last year:

[1] https://lists.gnu.org/archive/html/qemu-devel/2018-03/msg05077.html

This change adds a new “reset device” feature to the vhost-user protocol
and a corresponding VHOST_USER_RESET_DEVICE message to notify vhost-user
backends when a virtio scsi device is reset by a guest.
It also adds support for this new feature/message in vhost-user-scsi.

Now, iff a vhost-user-scsi backend reports that it supports the new
"reset device" feature, QEMU will send a VHOST_USER_RESET_DEVICE
message when the guest resets the virtio device. Existing backends
will be unaffected.

Other types vhost-user backends can benefit from using this new message.
Those built using libvhost-user, for example, rely on the depricated
VHOST_USER_RESET_OWNER message to notify vhost-user backends about
device resets and can be updated to use this new supported message.

Raphael

Raphael Norwitz (2):
  vhost-user: add VHOST_USER_RESET_DEVICE to reset devices
  vhost-user-scsi: reset the device if supported

 docs/interop/vhost-user.rst | 15 +++++++++++++++
 hw/scsi/vhost-user-scsi.c   | 24 ++++++++++++++++++++++++
 hw/virtio/vhost-user.c      |  8 +++++++-
 3 files changed, 46 insertions(+), 1 deletion(-)

-- 
1.8.3.1