Commit 7414539c authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

Revert "virtio: use virtio_device_ready() in virtio_device_restore()"



This reverts commit 8d65bc9a.

We reverted the problematic changes, no more need for work
arounds on restore.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
parent ad6dc1da
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -526,9 +526,8 @@ int virtio_device_restore(struct virtio_device *dev)
			goto err;
	}

	/* If restore didn't do it, mark device DRIVER_OK ourselves. */
	if (!(dev->config->get_status(dev) & VIRTIO_CONFIG_S_DRIVER_OK))
		virtio_device_ready(dev);
	/* Finally, tell the device we're all set */
	virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK);

	virtio_config_enable(dev);