Displaying 4 results from an estimated 4 matches for "vhost_mdev_backend".
2019 Sep 17
0
[RFC v4 3/3] vhost: introduce mdev based hardware backend
...dev_stop(&m->dev);
+ vhost_dev_cleanup(&m->dev);
+
+ kfree(m->dev.vqs);
+ kfree(m->vqs);
+
+ vfio_device_put(m->vfio_device);
+ vfio_group_put_external_user(m->vfio_group);
+
+ m->mdev = NULL;
+}
+
+static long vhost_mdev_set_backend(struct vhost_mdev *m,
+ struct vhost_mdev_backend __user *argp)
+{
+ struct vhost_mdev_backend backend;
+ struct mdev_device *mdev;
+ struct vhost_dev *dev;
+ struct vhost_virtqueue **vqs;
+ struct file *file;
+ struct vfio_device *device;
+ struct vfio_group *group;
+ unsigned long magic;
+ u64 features;
+ int i, nvqs;
+ long r;
+
+ vhost_mdev_re...
2019 Sep 17
1
[RFC v4 3/3] vhost: introduce mdev based hardware backend
...);
> +
> + kfree(m->dev.vqs);
> + kfree(m->vqs);
> +
> + vfio_device_put(m->vfio_device);
> + vfio_group_put_external_user(m->vfio_group);
> +
> + m->mdev = NULL;
> +}
> +
> +static long vhost_mdev_set_backend(struct vhost_mdev *m,
> + struct vhost_mdev_backend __user *argp)
> +{
> + struct vhost_mdev_backend backend;
> + struct mdev_device *mdev;
> + struct vhost_dev *dev;
> + struct vhost_virtqueue **vqs;
> + struct file *file;
> + struct vfio_device *device;
> + struct vfio_group *group;
> + unsigned long magic;
> + u64 fe...
2019 Sep 17
7
[RFC v4 0/3] vhost: introduce mdev based hardware backend
This RFC is to demonstrate below ideas,
a) Build vhost-mdev on top of the same abstraction defined in
the virtio-mdev series [1];
b) Introduce /dev/vhost-mdev to do vhost ioctls and support
setting mdev device as backend;
Now the userspace API looks like this:
- Userspace generates a compatible mdev device;
- Userspace opens this mdev device with VFIO API (including
doing IOMMU
2019 Sep 17
7
[RFC v4 0/3] vhost: introduce mdev based hardware backend
This RFC is to demonstrate below ideas,
a) Build vhost-mdev on top of the same abstraction defined in
the virtio-mdev series [1];
b) Introduce /dev/vhost-mdev to do vhost ioctls and support
setting mdev device as backend;
Now the userspace API looks like this:
- Userspace generates a compatible mdev device;
- Userspace opens this mdev device with VFIO API (including
doing IOMMU