Displaying 20 results from an estimated 29 matches for "virtqueue_resize".
2023 Feb 14
1
[PATCH vhost 10/10] virtio_ring: introduce virtqueue_reset()
...+++++++++++++++
include/linux/virtio.h | 2 ++
2 files changed, 52 insertions(+)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index 2ba60a14f557..2750a365439a 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -2930,6 +2930,56 @@ int virtqueue_resize(struct virtqueue *_vq, u32 num,
}
EXPORT_SYMBOL_GPL(virtqueue_resize);
+/**
+ * virtqueue_reset - detach and recycle all unused buffers
+ * @_vq: the struct virtqueue we're talking about.
+ * @recycle: callback to recycle unused buffers
+ *
+ * Caller must ensure we don't call this with...
2023 Feb 02
1
[PATCH 06/33] virtio_ring: introduce virtqueue_reset()
...+++++++++++++++
include/linux/virtio.h | 2 ++
2 files changed, 52 insertions(+)
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index e32046fd15a5..7dfce7001f9f 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -2735,6 +2735,56 @@ int virtqueue_resize(struct virtqueue *_vq, u32 num,
}
EXPORT_SYMBOL_GPL(virtqueue_resize);
+/**
+ * virtqueue_reset - reset the vring of vq
+ * @_vq: the struct virtqueue we're talking about.
+ * @recycle: callback for recycle the useless buffer
+ *
+ * Caller must ensure we don't call this with other virt...
2023 Apr 25
12
[PATCH vhost v7 00/11] virtio core prepares for AF_XDP
...ma codes
virtio_ring: split: support premapped
virtio_ring: packed: support premapped
virtio_ring: packed-indirect: support premapped
virtio_ring: update document for virtqueue_add_*
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio_ring.c | 352 +++++++++++++++++++++++++----------
include/linux/virtio.h | 4 +
2 files changed, 259 insertions(+), 97 deletions(-)
--
2.32.0.3.g0119...
2023 Mar 21
11
[PATCH vhost v3 00/11] virtio core prepares for AF_XDP
...ma codes
virtio_ring: split: support premapped
virtio_ring: packed: support premapped
virtio_ring: packed-indirect: support premapped
virtio_ring: update document for virtqueue_add_*
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio.c | 6 +
drivers/virtio/virtio_ring.c | 342 +++++++++++++++++++++++++----------
include/linux/virtio.h | 4 +
3 files changed, 255 insertions(...
2023 Mar 22
11
[PATCH vhost v4 00/11] virtio core prepares for AF_XDP
...ma codes
virtio_ring: split: support premapped
virtio_ring: packed: support premapped
virtio_ring: packed-indirect: support premapped
virtio_ring: update document for virtqueue_add_*
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio.c | 6 +
drivers/virtio/virtio_ring.c | 342 +++++++++++++++++++++++++----------
include/linux/virtio.h | 4 +
3 files changed, 255 insertions(...
2023 Mar 24
11
[PATCH vhost v5 00/11] virtio core prepares for AF_XDP
...ma codes
virtio_ring: split: support premapped
virtio_ring: packed: support premapped
virtio_ring: packed-indirect: support premapped
virtio_ring: update document for virtqueue_add_*
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio.c | 6 +
drivers/virtio/virtio_ring.c | 351 +++++++++++++++++++++++++----------
include/linux/virtio.h | 4 +
3 files changed, 264 insertions(...
2023 Mar 27
11
[PATCH vhost v6 00/11] virtio core prepares for AF_XDP
...ma codes
virtio_ring: split: support premapped
virtio_ring: packed: support premapped
virtio_ring: packed-indirect: support premapped
virtio_ring: update document for virtqueue_add_*
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio.c | 6 +
drivers/virtio/virtio_ring.c | 352 +++++++++++++++++++++++++----------
include/linux/virtio.h | 4 +
3 files changed, 265 insertions(...
2023 May 17
12
[PATCH vhost v9 00/12] virtio core prepares for AF_XDP
...t premapped
virtio_ring: packed: virtqueue_add_packed() support premapped
virtio_ring: introduce virtqueue_add_outbuf_premapped()
virtio_ring: introduce virtqueue_add_inbuf_premapped()
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio_ring.c | 296 +++++++++++++++++++++++++++--------
include/linux/virtio.h | 14 ++
2 files changed, 246 insertions(+), 64 deletions(-)
--
2.32.0.3.g011...
2023 May 09
12
[PATCH vhost v8 00/12] virtio core prepares for AF_XDP
...port premapped
virtio_ring: packed: support premapped
virtio_ring: packed-indirect: support premapped
virtio_ring: remove unused code
virtio_ring: update document for virtqueue_add_*
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio_ring.c | 375 +++++++++++++++++++++++++----------
include/linux/virtio.h | 4 +
2 files changed, 272 insertions(+), 107 deletions(-)
--
2.32.0.3.g011...
2023 Jul 10
10
[PATCH vhost v11 00/10] virtio core prepares for AF_XDP
...virtio_ring: put mapping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_premapped()
virtio_ring: support add premapped buf
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: skip unmap for premapped
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
virtio_net: merge dma operation for one page
drivers/net/virtio_net.c | 283 +++++++++++++++++++++++++++++++++--
drivers/virtio/virtio_ring.c | 257 ++++++++++++++++++++++++--...
2023 Sep 03
1
[GIT PULL] virtio: features
...apping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_dma_premapped()
virtio_ring: support add premapped buf
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: skip unmap for premapped
virtio_ring: correct the expression of the description of virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
virtio_ring: introduce dma map api for virtqueue
virtio_ring: introduce dma sync api for virtqueue
virtio_net: merge dma operations when filling mergeable b...
2023 Sep 03
1
[GIT PULL] virtio: features
...apping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_dma_premapped()
virtio_ring: support add premapped buf
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: skip unmap for premapped
virtio_ring: correct the expression of the description of virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
virtio_ring: introduce dma map api for virtqueue
virtio_ring: introduce dma sync api for virtqueue
virtio_net: merge dma operations when filling mergeable b...
2023 Mar 02
12
[PATCH vhost v1 00/12] virtio core prepares for AF_XDP
...acked() for premapped
virtio_ring: packed: separate DMA codes
virtio_ring: packed: introduce virtqueue_add_packed_premapped()
virtio_ring: introduce virtqueue_add_inbuf_premapped()
virtio_ring: introduce virtqueue_get_dma_dev()
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio.c | 6 +
drivers/virtio/virtio_ring.c | 636 ++++++++++++++++++++++++-----------
include/linux/virtio.h | 14 +
3 files changed, 466 insertions(...
2023 Aug 10
12
[PATCH vhost v13 00/12] virtio core prepares for AF_XDP
...rtio_ring: put mapping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_dma_premapped()
virtio_ring: support add premapped buf
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: skip unmap for premapped
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
virtio_ring: introduce dma map api for virtqueue
virtio_ring: introduce dma sync api for virtqueue
virtio_net: merge dma operations when filling mergeable buffers
drivers/net...
2023 Aug 10
12
[PATCH vhost v13 00/12] virtio core prepares for AF_XDP
...rtio_ring: put mapping error check in vring_map_one_sg
virtio_ring: introduce virtqueue_set_dma_premapped()
virtio_ring: support add premapped buf
virtio_ring: introduce virtqueue_dma_dev()
virtio_ring: skip unmap for premapped
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: separate the logic of reset/enable from virtqueue_resize
virtio_ring: introduce virtqueue_reset()
virtio_ring: introduce dma map api for virtqueue
virtio_ring: introduce dma sync api for virtqueue
virtio_net: merge dma operations when filling mergeable buffers
drivers/net...
2023 Mar 15
2
[PATCH v2 3/3] virtio_ring: Use const to annotate read-only pointer params
...ddr(struct virtqueue *vq);
+const struct vring *virtqueue_get_vring(const struct virtqueue *vq);
+dma_addr_t virtqueue_get_desc_addr(const struct virtqueue *vq);
+dma_addr_t virtqueue_get_avail_addr(const struct virtqueue *vq);
+dma_addr_t virtqueue_get_used_addr(const struct virtqueue *vq);
int virtqueue_resize(struct virtqueue *vq, u32 num,
void (*recycle)(struct virtqueue *vq, void *buf));
@@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev);
#endif
void virtio_reset_device(struct virtio_device *dev);
-size_t virtio_max_dma_size(struct virtio_device *vdev);
+size_t virtio...
2023 Feb 14
11
[PATCH vhost 00/10] virtio core prepares for AF_XDP
...apped()
virtio_ring: packed: introduce virtqueue_add_packed_premapped()
virtio_ring: introduce virtqueue_add_inbuf_premapped()
virtio_ring: add api virtio_dma_map() for advance dma
virtio_ring: introduce dma sync api for virtio
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio_ring.c | 792 ++++++++++++++++++++++++++++-------
include/linux/virtio.h | 29 ++
2 files changed, 659 insertions(+), 162 deletions(-)
--
2.32.0.3.g01195cf9f
2023 Apr 30
1
[RFC PATCH net 1/3] virtio: re-negotiate features if probe fails and features are blocked
...virtio_add_status(dev, VIRTIO_CONFIG_S_FAILED);
return err;
-
}
static void virtio_dev_remove(struct device *_d)
diff --git a/include/linux/virtio.h b/include/linux/virtio.h
index b93238db94e..2de9b2d3ca4 100644
--- a/include/linux/virtio.h
+++ b/include/linux/virtio.h
@@ -109,6 +109,7 @@ int virtqueue_resize(struct virtqueue *vq, u32 num,
* @vringh_config: configuration ops for host vrings.
* @vqs: the list of virtqueues for this device.
* @features: the features supported by both driver and device.
+ * @blocked_features: the features blocked by the driver that can't be negotiated.
* @priv:...
2023 May 10
0
[PATCH] virtio: Add missing documentation for structure fields
...t;
> ---
> include/linux/virtio.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/virtio.h b/include/linux/virtio.h
> index b93238db94e3..0b2b82ee3220 100644
> --- a/include/linux/virtio.h
> +++ b/include/linux/virtio.h
> @@ -103,6 +103,7 @@ int virtqueue_resize(struct virtqueue *vq, u32 num,
> * @config_enabled: configuration change reporting enabled
> * @config_change_pending: configuration change reported while disabled
> * @config_lock: protects configuration change reporting
> + * @vqs_list_lock: protects @vqs.
> * @dev: underly...
2023 May 10
0
[PATCH] virtio: Add missing documentation for structure fields
...changed, 2 insertions(+)
> > >
> > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h
> > > index b93238db94e3..0b2b82ee3220 100644
> > > --- a/include/linux/virtio.h
> > > +++ b/include/linux/virtio.h
> > > @@ -103,6 +103,7 @@ int virtqueue_resize(struct virtqueue *vq, u32 num,
> > > * @config_enabled: configuration change reporting enabled
> > > * @config_change_pending: configuration change reported while disabled
> > > * @config_lock: protects configuration change reporting
> > > + * @vqs_list_loc...