Displaying 20 results from an estimated 104 matches for "set_config_cb".
2020 Apr 09
2
[PATCH] vdpa: allow a 32 bit vq alignment
...{
u64 (*get_vq_state)(struct vdpa_device *vdev, u16 idx);
/* Device ops */
- u16 (*get_vq_align)(struct vdpa_device *vdev);
+ u32 (*get_vq_align)(struct vdpa_device *vdev);
u64 (*get_features)(struct vdpa_device *vdev);
int (*set_features)(struct vdpa_device *vdev, u64 features);
void (*set_config_cb)(struct vdpa_device *vdev,
--
MST
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...device
> + * Returns the features support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback
> structure
> + * @get_device_id: Get virtio device id
> + * @mdev: mediated device
> + * Returns u32: virtio device id
> + * @get_vendor_id: Get virtio vend...
2019 Sep 25
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...device
> + * Returns the features support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback
> structure
> + * @get_device_id: Get virtio device id
> + * @mdev: mediated device
> + * Returns u32: virtio device id
> + * @get_vendor_id: Get virtio vend...
2023 Jul 04
1
[PATCH] mlx5_vdpa: offer VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK
...x5_vdpa_get_vq_group,
>> .get_device_features = mlx5_vdpa_get_device_features,
>> + .get_backend_features = mlx5_vdpa_get_backend_features,
>> .set_driver_features = mlx5_vdpa_set_driver_features,
>> .get_driver_features = mlx5_vdpa_get_driver_features,
>> .set_config_cb = mlx5_vdpa_set_config_cb,
>> --
>> 2.39.3
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> > + * device
> > > + * @get_features: Set virtio features supported by the driver
> > > + * @mdev: mediated device
> > > + * @features: feature support by the driver
> > > + * Returns integer: success (0) or error (< 0)
> > > + * @set_config_cb: Set the config interrupt callback
> > > + * @mdev: mediated device
> > > + * @cb: virtio-mdev interrupt callback
> > > structure
> > > + * @get_device_id: Get virtio device id
> > > + * @mdev: mediated device
> > > + * Returns u32...
2019 Sep 25
2
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...> > + * device
> > > + * @get_features: Set virtio features supported by the driver
> > > + * @mdev: mediated device
> > > + * @features: feature support by the driver
> > > + * Returns integer: success (0) or error (< 0)
> > > + * @set_config_cb: Set the config interrupt callback
> > > + * @mdev: mediated device
> > > + * @cb: virtio-mdev interrupt callback
> > > structure
> > > + * @get_device_id: Get virtio device id
> > > + * @mdev: mediated device
> > > + * Returns u32...
2019 Sep 24
3
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...device
> + * Returns the features support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_device_id: Get virtio device id
> + * @mdev: mediated device
> + * Returns u32: virtio device id
> + * @get_vendor_id: Get virtio vendor id...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...features support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
s/get_features/set_features/
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_vq_num_max: Get the max size of virtqueue
> + * @mdev: mediated device
> + * Returns u16: max size of virtqueue
> + * @get_device_id: Get v...
2019 Oct 18
2
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...features support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
s/get_features/set_features/
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_vq_num_max: Get the max size of virtqueue
> + * @mdev: mediated device
> + * Returns u16: max size of virtqueue
> + * @get_device_id: Get v...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...eatures support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
^ s/g/s/
Thanks,
Alex
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_vq_num_max: Get the max size of virtqueue
> + * @mdev: mediated device
> + * Returns u16: max size of virtqueue
> + * @get_device_id: Get v...
2019 Oct 23
2
[PATCH V5 4/6] mdev: introduce virtio device and its device ops
...eatures support by the
> + * device
> + * @get_features: Set virtio features supported by the driver
^ s/g/s/
Thanks,
Alex
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_vq_num_max: Get the max size of virtqueue
> + * @mdev: mediated device
> + * Returns u16: max size of virtqueue
> + * @get_device_id: Get v...
2019 Oct 18
1
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...dx, u64 state);
> + u64 (*get_vq_state)(struct mdev_device *mdev, u16 idx);
> +
> + /* Device ops */
> + u16 (*get_vq_align)(struct mdev_device *mdev);
> + u64 (*get_features)(struct mdev_device *mdev);
> + int (*set_features)(struct mdev_device *mdev, u64 features);
> + void (*set_config_cb)(struct mdev_device *mdev,
> + struct virtio_mdev_callback *cb);
> + u16 (*get_vq_num_max)(struct mdev_device *mdev);
> + u32 (*get_device_id)(struct mdev_device *mdev);
> + u32 (*get_vendor_id)(struct mdev_device *mdev);
> + u8 (*get_status)(struct mdev_device *mdev);
> +...
2019 Sep 24
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...the device
+ * @mdev: mediated device
+ * Returns the features support by the
+ * device
+ * @get_features: Set virtio features supported by the driver
+ * @mdev: mediated device
+ * @features: feature support by the driver
+ * Returns integer: success (0) or error (< 0)
+ * @set_config_cb: Set the config interrupt callback
+ * @mdev: mediated device
+ * @cb: virtio-mdev interrupt callback structure
+ * @get_device_id: Get virtio device id
+ * @mdev: mediated device
+ * Returns u32: virtio device id
+ * @get_vendor_id: Get virtio vendor id
+ * @mdev: mediated device...
2019 Oct 11
0
[PATCH V3 5/7] mdev: introduce virtio device and its device ops
...vice
+ * @mdev: mediated device
+ * Returns the virtio features support by the
+ * device
+ * @get_features: Set virtio features supported by the driver
+ * @mdev: mediated device
+ * @features: feature support by the driver
+ * Returns integer: success (0) or error (< 0)
+ * @set_config_cb: Set the config interrupt callback
+ * @mdev: mediated device
+ * @cb: virtio-mdev interrupt callback structure
+ * @get_vq_num_max: Get the max size of virtqueue
+ * @mdev: mediated device
+ * Returns u16: max size of virtqueue
+ * @get_device_id: Get virtio device id
+ * @mdev:...
2019 Sep 26
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...+ * device
>>>> + * @get_features: Set virtio features supported by the driver
>>>> + * @mdev: mediated device
>>>> + * @features: feature support by the driver
>>>> + * Returns integer: success (0) or error (< 0)
>>>> + * @set_config_cb: Set the config interrupt callback
>>>> + * @mdev: mediated device
>>>> + * @cb: virtio-mdev interrupt callback
>>>> structure
>>>> + * @get_device_id: Get virtio device id
>>>> + * @mdev: mediated device
>>>> + *...
2019 Sep 25
0
[PATCH V2 6/8] mdev: introduce virtio device and its device ops
...ns the features support by the
>> + * device
>> + * @get_features: Set virtio features supported by the driver
>> + * @mdev: mediated device
>> + * @features: feature support by the driver
>> + * Returns integer: success (0) or error (< 0)
>> + * @set_config_cb: Set the config interrupt callback
>> + * @mdev: mediated device
>> + * @cb: virtio-mdev interrupt callback
>> structure
>> + * @get_device_id: Get virtio device id
>> + * @mdev: mediated device
>> + * Returns u32: virtio device id
>> + * @get...
2019 Nov 04
2
[PATCH V7 4/6] mdev: introduce virtio device and its device ops
...> + * Returns the virtio features support by the
> + * device
> + * @set_features: Set virtio features supported by the driver
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_vq_num_max: Get the max size of virtqueue
> + * @mdev: mediated device
> + * Returns u16: max size of virtqueue
> + * @get_device_id: Get v...
2019 Nov 04
2
[PATCH V7 4/6] mdev: introduce virtio device and its device ops
...> + * Returns the virtio features support by the
> + * device
> + * @set_features: Set virtio features supported by the driver
> + * @mdev: mediated device
> + * @features: feature support by the driver
> + * Returns integer: success (0) or error (< 0)
> + * @set_config_cb: Set the config interrupt callback
> + * @mdev: mediated device
> + * @cb: virtio-mdev interrupt callback structure
> + * @get_vq_num_max: Get the max size of virtqueue
> + * @mdev: mediated device
> + * Returns u16: max size of virtqueue
> + * @get_device_id: Get v...
2019 Oct 17
0
[PATCH V4 4/6] mdev: introduce virtio device and its device ops
...vice
+ * @mdev: mediated device
+ * Returns the virtio features support by the
+ * device
+ * @get_features: Set virtio features supported by the driver
+ * @mdev: mediated device
+ * @features: feature support by the driver
+ * Returns integer: success (0) or error (< 0)
+ * @set_config_cb: Set the config interrupt callback
+ * @mdev: mediated device
+ * @cb: virtio-mdev interrupt callback structure
+ * @get_vq_num_max: Get the max size of virtqueue
+ * @mdev: mediated device
+ * Returns u16: max size of virtqueue
+ * @get_device_id: Get virtio device id
+ * @mdev:...
2020 Apr 26
1
[PATCH 1/2] vdpa: Support config interrupt in vhost_vdpa
...Then there's no need for the specialized action for -1 above.
> + swap(ctx, v->config_ctx);
> +
> + if (!IS_ERR_OR_NULL(ctx))
> + eventfd_ctx_put(ctx);
> +
> + if (IS_ERR(v->config_ctx))
> + return PTR_ERR(v->config_ctx);
> +
> + v->vdpa->config->set_config_cb(v->vdpa, &cb);
> +
> + return 0;
> +}
> static long vhost_vdpa_vring_ioctl(struct vhost_vdpa *v, unsigned int cmd,
> void __user *argp)
> {
> @@ -398,6 +447,9 @@ static long vhost_vdpa_unlocked_ioctl(struct file *filep,
> case VHOST_SET_LOG_FD:
>...