search for: vrhs

Displaying 11 results from an estimated 11 matches for "vrhs".

Did you mean: vrh
2023 Apr 27
4
[RFC PATCH v2 0/3] Introduce a PCIe endpoint virtio console
PCIe endpoint framework provides APIs to implement PCIe endpoint function. This framework allows defining various PCIe endpoint function behaviors in software. This patch extend the framework for virtio pci device. The virtio is defined to communicate guest on virtual machine and host side. Advantage of the virtio is the efficiency of data transfer and the conciseness of implementation device
2013 Feb 27
2
Wrappers for vringh (was Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings))
...by find_vrh(). @@ -55,0 +64 @@ typedef void vq_callback_t(struct virtqueue *); +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); @@ -72,0 +82,4 @@ struct virtio_config_ops { + int (*find_vrh) (struct virtio_device *, unsigned nhvrs, + struct vringh *vrhs[], + vrh_callback_t *callbacks[]); + int (*del_vrhs)(struct virtio_device *); diff --git a/include/linux/vringh.h b/include/linux/vringh.h index 4c4c918..78aecc9 100644 --- a/include/linux/vringh.h +++ b/include/linux/vringh.h @@ -52,0 +53,3 @@ struct vringh { + +...
2013 Feb 27
2
Wrappers for vringh (was Re: [PATCHv2 vringh 1/3] remoteproc: Add support for vringh (Host vrings))
...by find_vrh(). @@ -55,0 +64 @@ typedef void vq_callback_t(struct virtqueue *); +typedef void vrh_callback_t(struct virtio_device *, struct vringh *); @@ -72,0 +82,4 @@ struct virtio_config_ops { + int (*find_vrh) (struct virtio_device *, unsigned nhvrs, + struct vringh *vrhs[], + vrh_callback_t *callbacks[]); + int (*del_vrhs)(struct virtio_device *); diff --git a/include/linux/vringh.h b/include/linux/vringh.h index 4c4c918..78aecc9 100644 --- a/include/linux/vringh.h +++ b/include/linux/vringh.h @@ -52,0 +53,3 @@ struct vringh { + +...
2013 Apr 09
1
[PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
...we're temporarily limited to two virtqueues per rvdev */ + if (id >= ARRAY_SIZE(rvdev->vring)) + return ERR_PTR(-EINVAL); + + /* Find available slot for a new host vring */ + for (i = id; i < ARRAY_SIZE(rvdev->vring); i++) { + rvring = &rvdev->vring[i]; + + /* Calling find_vrhs twice is bad */ + if (rvring->rvringh) + return ERR_PTR(-EINVAL); + + /* Use vring not already in use */ + if (!rvring->vq) + break; + } + + if (i == ARRAY_SIZE(rvdev->vring)) + return ERR_PTR(-ENODEV); + + ret = rproc_alloc_vring(rvdev, i); + if (ret) + return ERR_PTR(ret); + + a...
2013 Apr 09
1
[PATCHv2 virtio-next] remoteproc: Add support for host virtio rings (vringh)
...we're temporarily limited to two virtqueues per rvdev */ + if (id >= ARRAY_SIZE(rvdev->vring)) + return ERR_PTR(-EINVAL); + + /* Find available slot for a new host vring */ + for (i = id; i < ARRAY_SIZE(rvdev->vring); i++) { + rvring = &rvdev->vring[i]; + + /* Calling find_vrhs twice is bad */ + if (rvring->rvringh) + return ERR_PTR(-EINVAL); + + /* Use vring not already in use */ + if (!rvring->vq) + break; + } + + if (i == ARRAY_SIZE(rvdev->vring)) + return ERR_PTR(-ENODEV); + + ret = rproc_alloc_vring(rvdev, i); + if (ret) + return ERR_PTR(ret); + + a...
2013 Mar 05
2
[PATCH vringh] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. The functions find_vrhs() and del_vrhs() are added to struct virtio_config_ops to manage the host vrings. The function vringh_notify() is added so the guest can be kicked when buffers are added to the used-ring. This enables the virtio drivers to manage the virtio rings without knowledge of how the host vrings are manage...
2013 Mar 05
2
[PATCH vringh] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. The functions find_vrhs() and del_vrhs() are added to struct virtio_config_ops to manage the host vrings. The function vringh_notify() is added so the guest can be kicked when buffers are added to the used-ring. This enables the virtio drivers to manage the virtio rings without knowledge of how the host vrings are manage...
2013 Mar 15
2
[PATCH 0/2] remoteproc : support for host virtio
From: Erwan Yvin <erwan.yvin at stericsson.com> This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. with the vringh wrapper patch on top. They do not apply cleanly on top of the remoteproc virtio config patches from Sjur, but it merges fine. CAIF will use this new host virtio ring implementation. Ido,
2013 Mar 15
2
[PATCH 0/2] remoteproc : support for host virtio
From: Erwan Yvin <erwan.yvin at stericsson.com> This driver depends on Rusty's new host virtio ring implementation, so this patch-set is based on the vringh branch in Rusty's git. with the vringh wrapper patch on top. They do not apply cleanly on top of the remoteproc virtio config patches from Sjur, but it merges fine. CAIF will use this new host virtio ring implementation. Ido,
2013 Mar 08
1
[PATCHv2] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. A new struct vringh_config_ops with the functions find_vrhs() and del_vrhs() is added to the virtio_device struct. This enables virtio drivers to manage virtio host rings without detailed knowledge of how the vrings are created and deleted. The function vringh_notify() is added so vringh clients can notify the other side that buffers are added to the used-...
2013 Mar 08
1
[PATCHv2] virtio: Introduce vringh wrappers in virtio_config
From: Sjur Br?ndeland <sjur.brandeland at stericsson.com> Add wrappers for the host vrings to support loose coupling between the virtio device and driver. A new struct vringh_config_ops with the functions find_vrhs() and del_vrhs() is added to the virtio_device struct. This enables virtio drivers to manage virtio host rings without detailed knowledge of how the vrings are created and deleted. The function vringh_notify() is added so vringh clients can notify the other side that buffers are added to the used-...