search for: vhost_mdev_get_queue_num

Displaying 6 results from an estimated 6 matches for "vhost_mdev_get_queue_num".

2019 Oct 22
2
[PATCH v2] vhost: introduce mdev based hardware backend
...st_mdev *m, u16 __user *argp) +{ + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); + struct mdev_device *mdev = m->mdev; + u16 num; + + num = ops->get_vq_num_max(mdev); + + if (copy_to_user(argp, &num, sizeof(num))) + return -EFAULT; + return 0; +} + +static long vhost_mdev_get_queue_num(struct vhost_mdev *m, u32 __user *argp) +{ + u32 nvqs = m->nvqs; + + if (copy_to_user(argp, &nvqs, sizeof(nvqs))) + return -EFAULT; + return 0; +} + +static long vhost_mdev_vring_ioctl(struct vhost_mdev *m, unsigned int cmd, + void __user *argp) +{ + const struct virtio_mdev_device_op...
2019 Oct 22
2
[PATCH v2] vhost: introduce mdev based hardware backend
...st_mdev *m, u16 __user *argp) +{ + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); + struct mdev_device *mdev = m->mdev; + u16 num; + + num = ops->get_vq_num_max(mdev); + + if (copy_to_user(argp, &num, sizeof(num))) + return -EFAULT; + return 0; +} + +static long vhost_mdev_get_queue_num(struct vhost_mdev *m, u32 __user *argp) +{ + u32 nvqs = m->nvqs; + + if (copy_to_user(argp, &nvqs, sizeof(nvqs))) + return -EFAULT; + return 0; +} + +static long vhost_mdev_vring_ioctl(struct vhost_mdev *m, unsigned int cmd, + void __user *argp) +{ + const struct virtio_mdev_device_op...
2019 Oct 22
0
[PATCH v2] vhost: introduce mdev based hardware backend
...mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); > + struct mdev_device *mdev = m->mdev; > + u16 num; > + > + num = ops->get_vq_num_max(mdev); > + > + if (copy_to_user(argp, &num, sizeof(num))) > + return -EFAULT; > + return 0; > +} > + > +static long vhost_mdev_get_queue_num(struct vhost_mdev *m, u32 __user *argp) > +{ > + u32 nvqs = m->nvqs; > + > + if (copy_to_user(argp, &nvqs, sizeof(nvqs))) > + return -EFAULT; > + return 0; > +} > + > +static long vhost_mdev_vring_ioctl(struct vhost_mdev *m, unsigned int cmd, > + void __u...
2019 Oct 23
2
[PATCH v2] vhost: introduce mdev based hardware backend
...t; > + struct mdev_device *mdev = m->mdev; > > + u16 num; > > + > > + num = ops->get_vq_num_max(mdev); > > + > > + if (copy_to_user(argp, &num, sizeof(num))) > > + return -EFAULT; > > + return 0; > > +} > > + > > +static long vhost_mdev_get_queue_num(struct vhost_mdev *m, u32 __user *argp) > > +{ > > + u32 nvqs = m->nvqs; > > + > > + if (copy_to_user(argp, &nvqs, sizeof(nvqs))) > > + return -EFAULT; > > + return 0; > > +} > > + > > +static long vhost_mdev_vring_ioctl(struct vhost_mde...
2019 Oct 23
2
[PATCH v2] vhost: introduce mdev based hardware backend
...t; > + struct mdev_device *mdev = m->mdev; > > + u16 num; > > + > > + num = ops->get_vq_num_max(mdev); > > + > > + if (copy_to_user(argp, &num, sizeof(num))) > > + return -EFAULT; > > + return 0; > > +} > > + > > +static long vhost_mdev_get_queue_num(struct vhost_mdev *m, u32 __user *argp) > > +{ > > + u32 nvqs = m->nvqs; > > + > > + if (copy_to_user(argp, &nvqs, sizeof(nvqs))) > > + return -EFAULT; > > + return 0; > > +} > > + > > +static long vhost_mdev_vring_ioctl(struct vhost_mde...
2019 Oct 23
0
[PATCH v2] vhost: introduce mdev based hardware backend
...mdev = m->mdev; >>> + u16 num; >>> + >>> + num = ops->get_vq_num_max(mdev); >>> + >>> + if (copy_to_user(argp, &num, sizeof(num))) >>> + return -EFAULT; >>> + return 0; >>> +} >>> + >>> +static long vhost_mdev_get_queue_num(struct vhost_mdev *m, u32 __user *argp) >>> +{ >>> + u32 nvqs = m->nvqs; >>> + >>> + if (copy_to_user(argp, &nvqs, sizeof(nvqs))) >>> + return -EFAULT; >>> + return 0; >>> +} >>> + >>> +static long vhost_mdev_v...