commit | 64b4cc3911fe8284dfb3cfdb8065c100b818bab8 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Wed Oct 15 10:22:31 2014 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Oct 15 10:25:04 2014 +1030 |
tree | 3c884644f7afc11d2c157bcc3b6518529adb2012 | |
parent | f5866db64f341776c2d9ed48080f82459fea6a55 [diff] |
9p/trans_virtio: enable VQs early virtio spec requires drivers to set DRIVER_OK before using VQs. This is set automatically after probe returns, but virtio 9p device adds self to channel list within probe, at which point VQ can be used in violation of the spec. To fix, call virtio_device_ready before using VQs. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>