Displaying 3 results from an estimated 3 matches for "vhost_mdev_free".
2019 Sep 02
2
[RFC v3] vhost: introduce mdev based hardware vhost backend
...]->handle_kick = handle_vq_kick;
> + }
> + vhost_dev_init(dev, vqs, nvqs, 0, 0, 0);
> +
> + vdpa->private = private;
> + vdpa->mdev = mdev;
> +
> + mdev_set_drvdata(mdev, vdpa);
> +
> + return vdpa;
> +}
> +EXPORT_SYMBOL(vhost_mdev_alloc);
> +
> +void vhost_mdev_free(struct vhost_mdev *vdpa)
> +{
> + struct mdev_device *mdev;
> +
> + mdev = vdpa->mdev;
> + mdev_set_drvdata(mdev, NULL);
> +
> + vhost_dev_stop(&vdpa->dev);
> + vhost_dev_cleanup(&vdpa->dev);
> + kfree(vdpa->dev.vqs);
> + kfree(vdpa);
> +}
> +...
2019 Sep 02
2
[RFC v3] vhost: introduce mdev based hardware vhost backend
...]->handle_kick = handle_vq_kick;
> + }
> + vhost_dev_init(dev, vqs, nvqs, 0, 0, 0);
> +
> + vdpa->private = private;
> + vdpa->mdev = mdev;
> +
> + mdev_set_drvdata(mdev, vdpa);
> +
> + return vdpa;
> +}
> +EXPORT_SYMBOL(vhost_mdev_alloc);
> +
> +void vhost_mdev_free(struct vhost_mdev *vdpa)
> +{
> + struct mdev_device *mdev;
> +
> + mdev = vdpa->mdev;
> + mdev_set_drvdata(mdev, NULL);
> +
> + vhost_dev_stop(&vdpa->dev);
> + vhost_dev_cleanup(&vdpa->dev);
> + kfree(vdpa->dev.vqs);
> + kfree(vdpa);
> +}
> +...
2019 Sep 03
0
[RFC v3] vhost: introduce mdev based hardware vhost backend
...in QEMU use
similar IOVA to access the software based control vq of the same
virtio-mdev device at the same time?
Thanks,
Tiwei
>
> Thanks
>
>
> > +
> > +struct vhost_mdev *vhost_mdev_alloc(struct mdev_device *mdev,
> > + void *private, int nvqs);
> > +void vhost_mdev_free(struct vhost_mdev *vdpa);
> > +
> > +ssize_t vhost_mdev_read(struct mdev_device *mdev, char __user *buf,
> > + size_t count, loff_t *ppos);
> > +ssize_t vhost_mdev_write(struct mdev_device *mdev, const char __user *buf,
> > + size_t count, loff_t *ppos);
> > +l...