diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index d29075aa04e83acd0a9a0ed1ec41310c1a574de5..bec6e63fc7b9112cdd7a23b0f137842aa2784829 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -252,7 +252,7 @@ static void vhost_log_sync(MemoryListener *listener, memory_listener); MigrationState *ms = migrate_get_current(); - if (!dev->log_enabled || !dev->started) { + if (!dev->log_enabled || !dev->log) { return; } @@ -2624,7 +2624,6 @@ int vhost_dev_suspend(struct vhost_dev *hdev, VirtIODevice *vdev, bool vrings) memory_listener_unregister(&hdev->iommu_listener); } vhost_stop_config_intr(hdev); - vhost_log_put(hdev, true); hdev->started = false; vdev->vhost_started = false; hdev->vdev = NULL;