search for: set_vq_state

Displaying 20 results from an estimated 130 matches for "set_vq_state".

Did you mean: get_vq_state
2023 Jan 27
0
[PATCH 0/2] Fix expected set_vq_state behavior on vdpa_sim
On Wed, Jan 18, 2023 at 05:43:57PM +0100, Eugenio P?rez wrote: > The use of set_vq_state is to indicate vdpa device the state of a virtqueue. > In the case of split, it means the avail_idx. This is mandatory for use > cases like live migration. > > However, vdpa_sim reset the vq state at vdpasim_queue_ready since it calls > vringh_init_iotlb. > > Also, to starti...
2019 Sep 27
5
[PATCH] vhost: introduce mdev based hardware backend
...mp; VIRTIO_CONFIG_S_FEATURES_OK)) > > + goto reset; > > + > > + for (idx = 0; idx < m->nvqs; idx++) { > > + vq = &m->vqs[idx]; > > + > > + if (!vq->desc || !vq->avail || !vq->used) > > + break; > > + > > + if (ops->set_vq_state(mdev, idx, vq->last_avail_idx)) > > + goto reset; > > > If we do set_vq_state() in SET_VRING_BASE, we won't need this step here. Yeah, I plan to do it in the next version. > > > > + > > + /* > > + * In vhost-mdev, userspace should pass ring a...
2019 Sep 27
5
[PATCH] vhost: introduce mdev based hardware backend
...mp; VIRTIO_CONFIG_S_FEATURES_OK)) > > + goto reset; > > + > > + for (idx = 0; idx < m->nvqs; idx++) { > > + vq = &m->vqs[idx]; > > + > > + if (!vq->desc || !vq->avail || !vq->used) > > + break; > > + > > + if (ops->set_vq_state(mdev, idx, vq->last_avail_idx)) > > + goto reset; > > > If we do set_vq_state() in SET_VRING_BASE, we won't need this step here. Yeah, I plan to do it in the next version. > > > > + > > + /* > > + * In vhost-mdev, userspace should pass ring a...
2019 Sep 27
1
[PATCH] vhost: introduce mdev based hardware backend
...> > > > + for (idx = 0; idx < m->nvqs; idx++) { > > > > + vq = &m->vqs[idx]; > > > > + > > > > + if (!vq->desc || !vq->avail || !vq->used) > > > > + break; > > > > + > > > > + if (ops->set_vq_state(mdev, idx, vq->last_avail_idx)) > > > > + goto reset; > > > If we do set_vq_state() in SET_VRING_BASE, we won't need this step here. > > Yeah, I plan to do it in the next version. > > > > > > + > > > > + /* > > > > +...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2019 Sep 27
0
[PATCH] vhost: introduce mdev based hardware backend
...S_OK)) >>> + goto reset; >>> + >>> + for (idx = 0; idx < m->nvqs; idx++) { >>> + vq = &m->vqs[idx]; >>> + >>> + if (!vq->desc || !vq->avail || !vq->used) >>> + break; >>> + >>> + if (ops->set_vq_state(mdev, idx, vq->last_avail_idx)) >>> + goto reset; >> If we do set_vq_state() in SET_VRING_BASE, we won't need this step here. > Yeah, I plan to do it in the next version. > >>> + >>> + /* >>> + * In vhost-mdev, userspace should pass ring a...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> > + * @ready: ready (true) not ready(false) > > > + * @get_vq_ready: Get ready status for a virtqueue > > > + * @mdev: mediated device > > > + * @idx: virtqueue index > > > + * Returns boolean: ready (true) or not (false) > > > + * @set_vq_state: Set the state for a virtqueue > > > + * @mdev: mediated device > > > + * @idx: virtqueue index > > > + * @state: virtqueue state (last_avail_idx) > > > + * Returns integer: success (0) or error (< 0) > > > + * @get_vq_state: Get the sta...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> > + * @ready: ready (true) not ready(false) > > > + * @get_vq_ready: Get ready status for a virtqueue > > > + * @mdev: mediated device > > > + * @idx: virtqueue index > > > + * Returns boolean: ready (true) or not (false) > > > + * @set_vq_state: Set the state for a virtqueue > > > + * @mdev: mediated device > > > + * @idx: virtqueue index > > > + * @state: virtqueue state (last_avail_idx) > > > + * Returns integer: success (0) or error (< 0) > > > + * @get_vq_state: Get the sta...
2019 Sep 24
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2023 Jan 29
1
[PATCH v3 2/2] vdpasim: support doorbell mapping
...gt;notify) > + free_page(vdpasim->notify); > } > > static const struct vdpa_config_ops vdpasim_config_ops = { > @@ -704,6 +765,8 @@ static const struct vdpa_config_ops vdpasim_config_ops = { > .get_vq_ready = vdpasim_get_vq_ready, > .set_vq_state = vdpasim_set_vq_state, > .get_vq_state = vdpasim_get_vq_state, > + .get_vq_notification = vdpasim_get_vq_notification, > + .get_vq_notification_pgprot = vdpasim_get_vq_notification_pgprot, > .get_vq_align = vdpasim_get_vq_ali...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...mdev: mediated device > + * @idx: virtqueue index > + * @ready: ready (true) not ready(false) > + * @get_vq_ready: Get ready status for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * Returns boolean: ready (true) or not (false) > + * @set_vq_state: Set the state for a virtqueue > + * @mdev: mediated device > + * @idx: virtqueue index > + * @state: virtqueue state (last_avail_idx) > + * Returns integer: success (0) or error (< 0) > + * @get_vq_state: Get the state for a virtqueue > + * @mdev: mediated dev...
2019 Oct 18
1
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...k_vq)(struct mdev_device *mdev, u16 idx); > + void (*set_vq_cb)(struct mdev_device *mdev, u16 idx, > + struct virtio_mdev_callback *cb); > + void (*set_vq_ready)(struct mdev_device *mdev, u16 idx, bool ready); > + bool (*get_vq_ready)(struct mdev_device *mdev, u16 idx); > + int (*set_vq_state)(struct mdev_device *mdev, u16 idx, u64 state); > + u64 (*get_vq_state)(struct mdev_device *mdev, u16 idx); > + > + /* Device ops */ > + u16 (*get_vq_align)(struct mdev_device *mdev); > + u64 (*get_features)(struct mdev_device *mdev); > + int (*set_features)(struct mdev_device *md...
2019 Sep 24
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...ady status for a virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @ready: ready (true) not ready(false) + * @get_vq_ready: Get ready status for a virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * Returns boolean: ready (true) or not (false) + * @set_vq_state: Set the state for a virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @state: virtqueue state (last_avail_idx) + * Returns integer: success (0) or error (< 0) + * @get_vq_state: Get the state for a virtqueue + * @mdev: mediated device + * @idx: virtqueue ind...
2019 Oct 11
0
[PATCH V3 5/7] mdev: introduce virtio device and its device ops
...ady status for a virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @ready: ready (true) not ready(false) + * @get_vq_ready: Get ready status for a virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * Returns boolean: ready (true) or not (false) + * @set_vq_state: Set the state for a virtqueue + * @mdev: mediated device + * @idx: virtqueue index + * @state: virtqueue state (last_avail_idx) + * Returns integer: success (0) or error (< 0) + * @get_vq_state: Get the state for a virtqueue + * @mdev: mediated device + * @idx: virtqueue ind...
2019 Sep 26
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...+ * @ready: ready (true) not ready(false) >>>> + * @get_vq_ready: Get ready status for a virtqueue >>>> + * @mdev: mediated device >>>> + * @idx: virtqueue index >>>> + * Returns boolean: ready (true) or not (false) >>>> + * @set_vq_state: Set the state for a virtqueue >>>> + * @mdev: mediated device >>>> + * @idx: virtqueue index >>>> + * @state: virtqueue state (last_avail_idx) >>>> + * Returns integer: success (0) or error (< 0) >>>> + * @get_vq_state: G...
2019 Sep 25
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...t; + * @idx: virtqueue index >> + * @ready: ready (true) not ready(false) >> + * @get_vq_ready: Get ready status for a virtqueue >> + * @mdev: mediated device >> + * @idx: virtqueue index >> + * Returns boolean: ready (true) or not (false) >> + * @set_vq_state: Set the state for a virtqueue >> + * @mdev: mediated device >> + * @idx: virtqueue index >> + * @state: virtqueue state (last_avail_idx) >> + * Returns integer: success (0) or error (< 0) >> + * @get_vq_state: Get the state for a virtqueue >> +...