Displaying 3 results from an estimated 3 matches for "vhost_vdpa_config_valid".
2020 Feb 05
0
[PATCH] vhost: introduce vDPA based backend
...e
> > + * status to 0.
> > + */
> > + if (status != 0 && (ops->get_status(vdpa) & ~status) != 0)
> > + return -EINVAL;
> > +
> > + ops->set_status(vdpa, status);
> > +
> > + return 0;
> > +}
> > +
> > +static int vhost_vdpa_config_validate(struct vhost_vdpa *v,
> > + struct vhost_vdpa_config *c)
> > +{
> > + long size = 0;
> > +
> > + switch (v->virtio_id) {
> > + case VIRTIO_ID_NET:
> > + size = sizeof(struct virtio_net_config);
> > + break;
> > + }
> > +
&...
2020 Feb 04
10
[PATCH] vhost: introduce vDPA based backend
...rspace shouldn't remove status bits unless reset the
> + * status to 0.
> + */
> + if (status != 0 && (ops->get_status(vdpa) & ~status) != 0)
> + return -EINVAL;
> +
> + ops->set_status(vdpa, status);
> +
> + return 0;
> +}
> +
> +static int vhost_vdpa_config_validate(struct vhost_vdpa *v,
> + struct vhost_vdpa_config *c)
> +{
> + long size = 0;
> +
> + switch (v->virtio_id) {
> + case VIRTIO_ID_NET:
> + size = sizeof(struct virtio_net_config);
> + break;
> + }
> +
> + if (c->len == 0)
> + return -EINVAL;...
2020 Feb 04
10
[PATCH] vhost: introduce vDPA based backend
...rspace shouldn't remove status bits unless reset the
> + * status to 0.
> + */
> + if (status != 0 && (ops->get_status(vdpa) & ~status) != 0)
> + return -EINVAL;
> +
> + ops->set_status(vdpa, status);
> +
> + return 0;
> +}
> +
> +static int vhost_vdpa_config_validate(struct vhost_vdpa *v,
> + struct vhost_vdpa_config *c)
> +{
> + long size = 0;
> +
> + switch (v->virtio_id) {
> + case VIRTIO_ID_NET:
> + size = sizeof(struct virtio_net_config);
> + break;
> + }
> +
> + if (c->len == 0)
> + return -EINVAL;...