search for: vhost_mdev_get_status

Displaying 20 results from an estimated 23 matches for "vhost_mdev_get_status".

2019 Oct 22
2
[PATCH v2] vhost: introduce mdev based hardware backend
...gnal(call_ctx, 1); + return IRQ_HANDLED; +} + +static void vhost_mdev_reset(struct vhost_mdev *m) +{ + struct mdev_device *mdev = m->mdev; + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); + + m->status = 0; + return ops->set_status(mdev, m->status); +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); + struct mdev_device *mdev = m->mdev; + u8 status; + + status = ops->get_status(mdev); + m->status = status; + + if (copy_to_user(statusp, &status, sizeof(status))) +...
2019 Oct 22
2
[PATCH v2] vhost: introduce mdev based hardware backend
...gnal(call_ctx, 1); + return IRQ_HANDLED; +} + +static void vhost_mdev_reset(struct vhost_mdev *m) +{ + struct mdev_device *mdev = m->mdev; + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); + + m->status = 0; + return ops->set_status(mdev, m->status); +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); + struct mdev_device *mdev = m->mdev; + u8 status; + + status = ops->get_status(mdev); + m->status = status; + + if (copy_to_user(statusp, &status, sizeof(status))) +...
2019 Oct 29
2
[PATCH v3] vhost: introduce mdev based hardware backend
...r *argp) +{ + struct mdev_device *mdev = m->mdev; + const struct virtio_mdev_device_ops *ops = mdev_get_vhost_ops(mdev); + u32 device_id; + + device_id = ops->get_device_id(mdev); + + if (copy_to_user(argp, &device_id, sizeof(device_id))) + return -EFAULT; + + return 0; +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + struct mdev_device *mdev = m->mdev; + const struct virtio_mdev_device_ops *ops = mdev_get_vhost_ops(mdev); + u8 status; + + status = ops->get_status(mdev); + + if (copy_to_user(statusp, &status, sizeof(status))) + return -EFAULT; + + return...
2019 Oct 29
2
[PATCH v3] vhost: introduce mdev based hardware backend
...r *argp) +{ + struct mdev_device *mdev = m->mdev; + const struct virtio_mdev_device_ops *ops = mdev_get_vhost_ops(mdev); + u32 device_id; + + device_id = ops->get_device_id(mdev); + + if (copy_to_user(argp, &device_id, sizeof(device_id))) + return -EFAULT; + + return 0; +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + struct mdev_device *mdev = m->mdev; + const struct virtio_mdev_device_ops *ops = mdev_get_vhost_ops(mdev); + u8 status; + + status = ops->get_status(mdev); + + if (copy_to_user(statusp, &status, sizeof(status))) + return -EFAULT; + + return...
2019 Nov 05
4
[PATCH v5] vhost: introduce mdev based hardware backend
...r *argp) +{ + struct mdev_device *mdev = m->mdev; + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); + u32 device_id; + + device_id = ops->get_device_id(mdev); + + if (copy_to_user(argp, &device_id, sizeof(device_id))) + return -EFAULT; + + return 0; +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + struct mdev_device *mdev = m->mdev; + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); + u8 status; + + status = ops->get_status(mdev); + + if (copy_to_user(statusp, &status, sizeof(status))) + return -EFAULT; + + return...
2019 Nov 05
4
[PATCH v5] vhost: introduce mdev based hardware backend
...r *argp) +{ + struct mdev_device *mdev = m->mdev; + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); + u32 device_id; + + device_id = ops->get_device_id(mdev); + + if (copy_to_user(argp, &device_id, sizeof(device_id))) + return -EFAULT; + + return 0; +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + struct mdev_device *mdev = m->mdev; + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); + u8 status; + + status = ops->get_status(mdev); + + if (copy_to_user(statusp, &status, sizeof(status))) + return -EFAULT; + + return...
2019 Oct 22
0
[PATCH v2] vhost: introduce mdev based hardware backend
...+static void vhost_mdev_reset(struct vhost_mdev *m) > +{ > + struct mdev_device *mdev = m->mdev; > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); > + > + m->status = 0; > + return ops->set_status(mdev, m->status); > +} > + > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > +{ > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); > + struct mdev_device *mdev = m->mdev; > + u8 status; > + > + status = ops->get_status(mdev); > + m->status = status; > + > + if (copy_to_...
2019 Nov 07
2
[PATCH v6] vhost: introduce mdev based hardware backend
...r *argp) +{ + struct mdev_device *mdev = m->mdev; + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); + u32 device_id; + + device_id = ops->get_device_id(mdev); + + if (copy_to_user(argp, &device_id, sizeof(device_id))) + return -EFAULT; + + return 0; +} + +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) +{ + struct mdev_device *mdev = m->mdev; + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); + u8 status; + + status = ops->get_status(mdev); + + if (copy_to_user(statusp, &status, sizeof(status))) + return -EFAULT; + + return...
2019 Nov 06
2
[PATCH v5] vhost: introduce mdev based hardware backend
...st_ops(mdev); > > + u32 device_id; > > + > > + device_id = ops->get_device_id(mdev); > > + > > + if (copy_to_user(argp, &device_id, sizeof(device_id))) > > + return -EFAULT; > > + > > + return 0; > > +} > > + > > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > > +{ > > + struct mdev_device *mdev = m->mdev; > > + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > > + u8 status; > > + > > + status = ops->get_status(mdev); > > + > > + if (co...
2019 Nov 06
2
[PATCH v5] vhost: introduce mdev based hardware backend
...st_ops(mdev); > > + u32 device_id; > > + > > + device_id = ops->get_device_id(mdev); > > + > > + if (copy_to_user(argp, &device_id, sizeof(device_id))) > > + return -EFAULT; > > + > > + return 0; > > +} > > + > > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > > +{ > > + struct mdev_device *mdev = m->mdev; > > + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > > + u8 status; > > + > > + status = ops->get_status(mdev); > > + > > + if (co...
2019 Oct 30
1
[PATCH v3] vhost: introduce mdev based hardware backend
...; > + return 0; > > +} > > > I believe we need get_vendor_id() as well? Currently, there is no official way for vendors to do vendor specific extensions in vhost-mdev yet. It might be better to add this ioctl when we support this. > > > > + > > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > > +{ > > + struct mdev_device *mdev = m->mdev; > > + const struct virtio_mdev_device_ops *ops = mdev_get_vhost_ops(mdev); > > + u8 status; > > + > > + status = ops->get_status(mdev); > > + > > + if (co...
2019 Oct 23
2
[PATCH v2] vhost: introduce mdev based hardware backend
...dev *m) > > +{ > > + struct mdev_device *mdev = m->mdev; > > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); > > + > > + m->status = 0; > > + return ops->set_status(mdev, m->status); > > +} > > + > > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > > +{ > > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); > > + struct mdev_device *mdev = m->mdev; > > + u8 status; > > + > > + status = ops->get_status(mdev); > > + m->status =...
2019 Oct 23
2
[PATCH v2] vhost: introduce mdev based hardware backend
...dev *m) > > +{ > > + struct mdev_device *mdev = m->mdev; > > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); > > + > > + m->status = 0; > > + return ops->set_status(mdev, m->status); > > +} > > + > > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > > +{ > > + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); > > + struct mdev_device *mdev = m->mdev; > > + u8 status; > > + > > + status = ops->get_status(mdev); > > + m->status =...
2019 Nov 06
0
[PATCH v5] vhost: introduce mdev based hardware backend
...const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > + u32 device_id; > + > + device_id = ops->get_device_id(mdev); > + > + if (copy_to_user(argp, &device_id, sizeof(device_id))) > + return -EFAULT; > + > + return 0; > +} > + > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > +{ > + struct mdev_device *mdev = m->mdev; > + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > + u8 status; > + > + status = ops->get_status(mdev); > + > + if (copy_to_user(statusp, &status, sizeof(...
2019 Nov 06
2
[PATCH v5] vhost: introduce mdev based hardware backend
...t;> + device_id = ops->get_device_id(mdev); >>>> + >>>> + if (copy_to_user(argp, &device_id, sizeof(device_id))) >>>> + return -EFAULT; >>>> + >>>> + return 0; >>>> +} >>>> + >>>> +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) >>>> +{ >>>> + struct mdev_device *mdev = m->mdev; >>>> + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); >>>> + u8 status; >>>> + >>>> + status = ops->get_st...
2019 Nov 06
2
[PATCH v5] vhost: introduce mdev based hardware backend
...t;> + device_id = ops->get_device_id(mdev); >>>> + >>>> + if (copy_to_user(argp, &device_id, sizeof(device_id))) >>>> + return -EFAULT; >>>> + >>>> + return 0; >>>> +} >>>> + >>>> +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) >>>> +{ >>>> + struct mdev_device *mdev = m->mdev; >>>> + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); >>>> + u8 status; >>>> + >>>> + status = ops->get_st...
2019 Oct 30
0
[PATCH v3] vhost: introduce mdev based hardware backend
..._get_vhost_ops(mdev); > + u32 device_id; > + > + device_id = ops->get_device_id(mdev); > + > + if (copy_to_user(argp, &device_id, sizeof(device_id))) > + return -EFAULT; > + > + return 0; > +} I believe we need get_vendor_id() as well? > + > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > +{ > + struct mdev_device *mdev = m->mdev; > + const struct virtio_mdev_device_ops *ops = mdev_get_vhost_ops(mdev); > + u8 status; > + > + status = ops->get_status(mdev); > + > + if (copy_to_user(statusp, &status, sizeof(...
2019 Nov 06
0
[PATCH v5] vhost: introduce mdev based hardware backend
...const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > + u32 device_id; > + > + device_id = ops->get_device_id(mdev); > + > + if (copy_to_user(argp, &device_id, sizeof(device_id))) > + return -EFAULT; > + > + return 0; > +} > + > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > +{ > + struct mdev_device *mdev = m->mdev; > + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > + u8 status; > + > + status = ops->get_status(mdev); > + > + if (copy_to_user(statusp, &status, sizeof(...
2019 Oct 23
0
[PATCH v2] vhost: introduce mdev based hardware backend
...;>> + struct mdev_device *mdev = m->mdev; >>> + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(mdev); >>> + >>> + m->status = 0; >>> + return ops->set_status(mdev, m->status); >>> +} >>> + >>> +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) >>> +{ >>> + const struct virtio_mdev_device_ops *ops = mdev_get_dev_ops(m->mdev); >>> + struct mdev_device *mdev = m->mdev; >>> + u8 status; >>> + >>> + status = ops->get_status(mdev); >>...
2019 Nov 06
0
[PATCH v5] vhost: introduce mdev based hardware backend
...> + > > > + device_id = ops->get_device_id(mdev); > > > + > > > + if (copy_to_user(argp, &device_id, sizeof(device_id))) > > > + return -EFAULT; > > > + > > > + return 0; > > > +} > > > + > > > +static long vhost_mdev_get_status(struct vhost_mdev *m, u8 __user *statusp) > > > +{ > > > + struct mdev_device *mdev = m->mdev; > > > + const struct mdev_virtio_device_ops *ops = mdev_get_vhost_ops(mdev); > > > + u8 status; > > > + > > > + status = ops->get_status(mdev);...