search for: virtio_early_enable_vq

Displaying 5 results from an estimated 5 matches for "virtio_early_enable_vq".

2014 Oct 06
1
[PATCH 10/16] virtio: add API to enable VQs early
...fig.h b/include/linux/virtio_config.h > index e8f8f71..6127fc8 100644 > --- a/include/linux/virtio_config.h > +++ b/include/linux/virtio_config.h > @@ -109,6 +109,23 @@ struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev, > return vq; > } > > +/** > + * virtio_early_enable_vqs - enable vq use in probe function > + * @vdev: the device > + * > + * Driver must call this to use vqs in the probe function. > + * > + * Note: vqs are enabled automatically after probe returns. > + */ > +static inline > +void virtio_early_enable_vqs(struct virtio_device *d...
2014 Oct 06
1
[PATCH 10/16] virtio: add API to enable VQs early
...fig.h b/include/linux/virtio_config.h > index e8f8f71..6127fc8 100644 > --- a/include/linux/virtio_config.h > +++ b/include/linux/virtio_config.h > @@ -109,6 +109,23 @@ struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev, > return vq; > } > > +/** > + * virtio_early_enable_vqs - enable vq use in probe function > + * @vdev: the device > + * > + * Driver must call this to use vqs in the probe function. > + * > + * Note: vqs are enabled automatically after probe returns. > + */ > +static inline > +void virtio_early_enable_vqs(struct virtio_device *d...
2014 Oct 05
0
[PATCH 10/16] virtio: add API to enable VQs early
...ns(+) diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index e8f8f71..6127fc8 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h @@ -109,6 +109,23 @@ struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev, return vq; } +/** + * virtio_early_enable_vqs - enable vq use in probe function + * @vdev: the device + * + * Driver must call this to use vqs in the probe function. + * + * Note: vqs are enabled automatically after probe returns. + */ +static inline +void virtio_early_enable_vqs(struct virtio_device *dev) +{ + unsigned status = dev->confi...
2014 Oct 05
28
[PATCH 00/16] virtio: fix spec compliance issues
Rusty, I have a mind to send this patches for the next merge window. Any input on this? This fixes the following virtio spec compliance issues: 1. on restore, drivers use device before setting ACKNOWLEDGE and DRIVER bits 2. on probe, drivers aren't prepared to handle config interrupts arriving before probe returns 3. on probe, drivers use device before DRIVER_OK it set Note that 1 is a
2014 Oct 05
28
[PATCH 00/16] virtio: fix spec compliance issues
Rusty, I have a mind to send this patches for the next merge window. Any input on this? This fixes the following virtio spec compliance issues: 1. on restore, drivers use device before setting ACKNOWLEDGE and DRIVER bits 2. on probe, drivers aren't prepared to handle config interrupts arriving before probe returns 3. on probe, drivers use device before DRIVER_OK it set Note that 1 is a