search for: vhost_vring_call_reset

Displaying 8 results from an estimated 8 matches for "vhost_vring_call_reset".

2020 Aug 04
3
[PATCH V5 1/6] vhost: introduce vhost_vring_call
...9302 100644 >>> --- a/drivers/vhost/vhost.c >>> +++ b/drivers/vhost/vhost.c >>> @@ -298,6 +298,13 @@ static void vhost_vq_meta_reset(struct >>> vhost_dev *d) >>> ????????? __vhost_vq_meta_reset(d->vqs[i]); >>> ? } >>> ? +static void vhost_vring_call_reset(struct vhost_vring_call >>> *call_ctx) >>> +{ >>> +??? call_ctx->ctx = NULL; >>> +??? memset(&call_ctx->producer, 0x0, sizeof(struct >>> irq_bypass_producer)); >>> +??? spin_lock_init(&call_ctx->ctx_lock); >>> +} >...
2020 Aug 04
3
[PATCH V5 1/6] vhost: introduce vhost_vring_call
...9302 100644 >>> --- a/drivers/vhost/vhost.c >>> +++ b/drivers/vhost/vhost.c >>> @@ -298,6 +298,13 @@ static void vhost_vq_meta_reset(struct >>> vhost_dev *d) >>> ????????? __vhost_vq_meta_reset(d->vqs[i]); >>> ? } >>> ? +static void vhost_vring_call_reset(struct vhost_vring_call >>> *call_ctx) >>> +{ >>> +??? call_ctx->ctx = NULL; >>> +??? memset(&call_ctx->producer, 0x0, sizeof(struct >>> irq_bypass_producer)); >>> +??? spin_lock_init(&call_ctx->ctx_lock); >>> +} >...
2020 Aug 04
0
[PATCH V5 1/6] vhost: introduce vhost_vring_call
...st.c b/drivers/vhost/vhost.c > index d7b8df3edffc..9f1a845a9302 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -298,6 +298,13 @@ static void vhost_vq_meta_reset(struct vhost_dev *d) > __vhost_vq_meta_reset(d->vqs[i]); > } > > +static void vhost_vring_call_reset(struct vhost_vring_call *call_ctx) > +{ > + call_ctx->ctx = NULL; > + memset(&call_ctx->producer, 0x0, sizeof(struct irq_bypass_producer)); > + spin_lock_init(&call_ctx->ctx_lock); > +} > + > static void vhost_vq_reset(struct vhost_dev *dev, > stru...
2020 Jul 22
0
[PATCH V3 1/6] vhost: introduce vhost_vring_call
...st.c b/drivers/vhost/vhost.c > index d7b8df3edffc..9f1a845a9302 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -298,6 +298,13 @@ static void vhost_vq_meta_reset(struct vhost_dev *d) > __vhost_vq_meta_reset(d->vqs[i]); > } > > +static void vhost_vring_call_reset(struct vhost_vring_call *call_ctx) > +{ > + call_ctx->ctx = NULL; > + memset(&call_ctx->producer, 0x0, sizeof(struct irq_bypass_producer)); > + spin_lock_init(&call_ctx->ctx_lock); > +} > + > static void vhost_vq_reset(struct vhost_dev *dev, > stru...
2020 Aug 04
0
[PATCH V5 1/6] vhost: introduce vhost_vring_call
...ost/vhost.c > > > > +++ b/drivers/vhost/vhost.c > > > > @@ -298,6 +298,13 @@ static void vhost_vq_meta_reset(struct > > > > vhost_dev *d) > > > > ????????? __vhost_vq_meta_reset(d->vqs[i]); > > > > ? } > > > > ? +static void vhost_vring_call_reset(struct vhost_vring_call > > > > *call_ctx) > > > > +{ > > > > +??? call_ctx->ctx = NULL; > > > > +??? memset(&call_ctx->producer, 0x0, sizeof(struct > > > > irq_bypass_producer)); > > > > +??? spin_lock_init(&call...
2020 Sep 09
0
[PATCH] vhost_vdpa: remove unnecessary spin_lock in vhost_vring_call
...x.ctx_lock); > } > > static void vhost_vdpa_reset(struct vhost_vdpa *v) > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index b45519ca66a7..99f27ce982da 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -302,7 +302,6 @@ static void vhost_vring_call_reset(struct vhost_vring_call *call_ctx) > { > call_ctx->ctx = NULL; > memset(&call_ctx->producer, 0x0, sizeof(struct irq_bypass_producer)); > - spin_lock_init(&call_ctx->ctx_lock); > } > > static void vhost_vq_reset(struct vhost_dev *dev, > @@ -163...
2020 Sep 22
0
[PATCH 2/8] vhost: add helper to check if a vq has been setup
...c | 9 +++++++++ > drivers/vhost/vhost.h | 1 + > 2 files changed, 10 insertions(+) > > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index b45519c..5dd9eb1 100644 > --- a/drivers/vhost/vhost.c > +++ b/drivers/vhost/vhost.c > @@ -305,6 +305,15 @@ static void vhost_vring_call_reset(struct vhost_vring_call *call_ctx) > spin_lock_init(&call_ctx->ctx_lock); > } > > +bool vhost_vq_is_setup(struct vhost_virtqueue *vq) > +{ > + if (vq->avail && vq->desc && vq->used && vhost_vq_access_ok(vq)) > + return true; >...
2020 Sep 24
0
[PATCH 2/8] vhost: add helper to check if a vq has been setup
...t;> ? 2 files changed, 10 insertions(+) >>> >>> diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c >>> index b45519c..5dd9eb1 100644 >>> --- a/drivers/vhost/vhost.c >>> +++ b/drivers/vhost/vhost.c >>> @@ -305,6 +305,15 @@ static void vhost_vring_call_reset(struct vhost_vring_call *call_ctx) >>> ????? spin_lock_init(&call_ctx->ctx_lock); >>> ? } >>> ? +bool vhost_vq_is_setup(struct vhost_virtqueue *vq) >>> +{ >>> +??? if (vq->avail && vq->desc && vq->used && vhost_...