[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings d
From: |
Shesha Sreenivasamurthy |
Subject: |
[Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot |
Date: |
Fri, 15 Jan 2016 12:23:48 -0800 |
Send VHOST_USER_RESET_OWNER when the device is stopped.
Signed-off-by: Shesha Sreenivasamurthy <address@hidden>
---
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)