Displaying 3 results from an estimated 3 matches for "vhost_vdpa_set_config".
Did you mean:
vhost_vdpa_get_config
2020 Feb 05
0
[PATCH] vhost: introduce vDPA based backend
...->get_config(vdpa, config.off, buf, config.len);
> > +
> > + if (copy_to_user(c->buf, buf, config.len)) {
> > + kvfree(buf);
> > + return -EFAULT;
> > + }
> > +
> > + kvfree(buf);
> > + return 0;
> > +}
> > +
> > +static long vhost_vdpa_set_config(struct vhost_vdpa *v,
> > + struct vhost_vdpa_config __user *c)
> > +{
> > + struct vdpa_device *vdpa = v->vdpa;
> > + const struct vdpa_config_ops *ops = vdpa->config;
> > + struct vhost_vdpa_config config;
> > + unsigned long size = offsetof(struct v...
2020 Feb 04
10
[PATCH] vhost: introduce vDPA based backend
...; + if (!buf)
> + return -ENOMEM;
> +
> + ops->get_config(vdpa, config.off, buf, config.len);
> +
> + if (copy_to_user(c->buf, buf, config.len)) {
> + kvfree(buf);
> + return -EFAULT;
> + }
> +
> + kvfree(buf);
> + return 0;
> +}
> +
> +static long vhost_vdpa_set_config(struct vhost_vdpa *v,
> + struct vhost_vdpa_config __user *c)
> +{
> + struct vdpa_device *vdpa = v->vdpa;
> + const struct vdpa_config_ops *ops = vdpa->config;
> + struct vhost_vdpa_config config;
> + unsigned long size = offsetof(struct vhost_vdpa_config, buf);
> +...
2020 Feb 04
10
[PATCH] vhost: introduce vDPA based backend
...; + if (!buf)
> + return -ENOMEM;
> +
> + ops->get_config(vdpa, config.off, buf, config.len);
> +
> + if (copy_to_user(c->buf, buf, config.len)) {
> + kvfree(buf);
> + return -EFAULT;
> + }
> +
> + kvfree(buf);
> + return 0;
> +}
> +
> +static long vhost_vdpa_set_config(struct vhost_vdpa *v,
> + struct vhost_vdpa_config __user *c)
> +{
> + struct vdpa_device *vdpa = v->vdpa;
> + const struct vdpa_config_ops *ops = vdpa->config;
> + struct vhost_vdpa_config config;
> + unsigned long size = offsetof(struct vhost_vdpa_config, buf);
> +...