search for: 6c10e99ff334

Displaying 6 results from an estimated 6 matches for "6c10e99ff334".

2020 Jun 04
1
[PATCH RFC 07/13] vhost: format-independent API for used buffers
On 2020/6/4 ??5:03, Michael S. Tsirkin wrote: >>> static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) >>> { >>> __u16 old, new; >>> diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h >>> index a67bda9792ec..6c10e99ff334 100644 >>> --- a/drivers/vhost/vhost.h >>> +++ b/drivers/vhost/vhost.h >>> @@ -67,6 +67,13 @@ struct vhost_desc { >>> u16 id; >>> }; >>> +struct vhost_buf { >>> + u32 out_len; >>> + u32 in_len; >>> + u16 descs;...
2020 Jun 03
2
[PATCH RFC 07/13] vhost: format-independent API for used buffers
...sed_n(vq, vq->heads, count); > +} > +EXPORT_SYMBOL_GPL(vhost_put_used_n_bufs); > + > static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) > { > __u16 old, new; > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index a67bda9792ec..6c10e99ff334 100644 > --- a/drivers/vhost/vhost.h > +++ b/drivers/vhost/vhost.h > @@ -67,6 +67,13 @@ struct vhost_desc { > u16 id; > }; > > +struct vhost_buf { > + u32 out_len; > + u32 in_len; > + u16 descs; > + u16 id; > +}; So it looks to me the struct vhost_buf c...
2020 Jun 03
2
[PATCH RFC 07/13] vhost: format-independent API for used buffers
...sed_n(vq, vq->heads, count); > +} > +EXPORT_SYMBOL_GPL(vhost_put_used_n_bufs); > + > static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) > { > __u16 old, new; > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > index a67bda9792ec..6c10e99ff334 100644 > --- a/drivers/vhost/vhost.h > +++ b/drivers/vhost/vhost.h > @@ -67,6 +67,13 @@ struct vhost_desc { > u16 id; > }; > > +struct vhost_buf { > + u32 out_len; > + u32 in_len; > + u16 descs; > + u16 id; > +}; So it looks to me the struct vhost_buf c...
2020 Jun 02
0
[PATCH RFC 07/13] vhost: format-independent API for used buffers
...bufs[i].in_len); + } + + return vhost_add_used_n(vq, vq->heads, count); +} +EXPORT_SYMBOL_GPL(vhost_put_used_n_bufs); + static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) { __u16 old, new; diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index a67bda9792ec..6c10e99ff334 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -67,6 +67,13 @@ struct vhost_desc { u16 id; }; +struct vhost_buf { + u32 out_len; + u32 in_len; + u16 descs; + u16 id; +}; + /* The virtqueue structure describes a queue attached to a device. */ struct vhost_virtqueue { stru...
2020 Jun 04
0
[PATCH RFC 07/13] vhost: format-independent API for used buffers
...; +} > > +EXPORT_SYMBOL_GPL(vhost_put_used_n_bufs); > > + > > static bool vhost_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq) > > { > > __u16 old, new; > > diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h > > index a67bda9792ec..6c10e99ff334 100644 > > --- a/drivers/vhost/vhost.h > > +++ b/drivers/vhost/vhost.h > > @@ -67,6 +67,13 @@ struct vhost_desc { > > u16 id; > > }; > > +struct vhost_buf { > > + u32 out_len; > > + u32 in_len; > > + u16 descs; > > + u16 id; > >...
2020 Jun 02
21
[PATCH RFC 00/13] vhost: format independence
We let the specifics of the ring format seep through to vhost API callers - mostly because there was only one format so it was hard to imagine what an independent API would look like. Now that there's an alternative in form of the packed ring, it's easier to see the issues, and fixing them is perhaps the cleanest way to add support for more formats. This patchset does this by indtroducing