Skip to content

Commit 7414539

Browse files
committed
Revert "virtio: use virtio_device_ready() in virtio_device_restore()"
This reverts commit 8d65bc9. We reverted the problematic changes, no more need for work arounds on restore. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
1 parent ad6dc1d commit 7414539

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/virtio/virtio.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,8 @@ int virtio_device_restore(struct virtio_device *dev)
526526
goto err;
527527
}
528528

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

533532
virtio_config_enable(dev);
534533

0 commit comments

Comments
 (0)