commit | 6d62c37f1991aafc872f8d8be8ac60e57ede8605 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Wed Oct 15 10:22:32 2014 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Oct 15 10:25:07 2014 +1030 |
tree | 346383120729b4e6a49271289d617e0c8f487d48 | |
parent | cd679048958011418f14a8fc7dfdb64ab72ca315 [diff] |
virtio_blk: enable VQs early on restore virtio spec requires drivers to set DRIVER_OK before using VQs. This is set automatically after restore returns, virtio block violated this rule on restore by restarting queues, which might in theory cause the VQ to be used directly within restore. To fix, call virtio_device_ready before using starting queues. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>