Re: [PATCH 10/16] virtio: add API to enable VQs early

2014-10-06 Thread Michael S. Tsirkin
On Mon, Oct 06, 2014 at 04:08:16PM +0200, Cornelia Huck wrote: > On Sun, 5 Oct 2014 19:07:19 +0300 > "Michael S. Tsirkin" wrote: > > > virtio spec requires DRIVER_OK to be set before > > VQs are used, but some drivers use VQs before probe > > function returns. > > Since DRIVER_OK is set after pro

Re: [PATCH 10/16] virtio: add API to enable VQs early

2014-10-06 Thread Cornelia Huck
On Sun, 5 Oct 2014 19:07:19 +0300 "Michael S. Tsirkin" wrote: > virtio spec requires DRIVER_OK to be set before > VQs are used, but some drivers use VQs before probe > function returns. > Since DRIVER_OK is set after probe, this violates the spec. "Even though transitional devices support this b

[PATCH 10/16] virtio: add API to enable VQs early

2014-10-05 Thread Michael S. Tsirkin
virtio spec requires DRIVER_OK to be set before VQs are used, but some drivers use VQs before probe function returns. Since DRIVER_OK is set after probe, this violates the spec. Add API for drivers to call before using VQs. Sets DRIVER_OK internally. Signed-off-by: Michael S. Tsirkin --- inclu