Send VHOST_USER_RESET_OWNER when the device is stopped. Signed-off-by: Shesha Sreenivasamurthy <she...@cisco.com> --- hw/virtio/vhost.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index de29968..808184f 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1256,6 +1256,11 @@ void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev) hdev->vq_index + i); } + if (hdev->vhost_ops->vhost_reset_device(hdev) < 0) { + fprintf(stderr, "vhost reset device %s failed\n", vdev->name); + fflush(stderr); + } + vhost_log_put(hdev, true); hdev->started = false; hdev->log = NULL; -- 1.9.5 (Apple Git-50.3)