search for: mdev_class_struct

Displaying 7 results from an estimated 7 matches for "mdev_class_struct".

2019 Oct 15
6
[PATCH V3 4/7] mdev: introduce device specific ops
On Fri, 11 Oct 2019 16:15:54 +0800 Jason Wang <jasowang at redhat.com> wrote: > Currently, except for the create and remove, the rest of > mdev_parent_ops is designed for vfio-mdev driver only and may not help > for kernel mdev driver. With the help of class id, this patch > introduces device specific callbacks inside mdev_device > structure. This allows different set of
2019 Oct 15
6
[PATCH V3 4/7] mdev: introduce device specific ops
On Fri, 11 Oct 2019 16:15:54 +0800 Jason Wang <jasowang at redhat.com> wrote: > Currently, except for the create and remove, the rest of > mdev_parent_ops is designed for vfio-mdev driver only and may not help > for kernel mdev driver. With the help of class id, this patch > introduces device specific callbacks inside mdev_device > structure. This allows different set of
2019 Oct 16
0
[PATCH V3 4/7] mdev: introduce device specific ops
...; incorporate type checking here. We toyed with the idea of having the class > > in the same structure as the ops, but I think this approach was chosen for > > simplicity. We could still do something like: > > > > int mdev_set_class_struct(struct device *dev, const struct mdev_class_struct > > *class); > > > > struct mdev_class_struct { > > u16 id; > > union { > > struct vfio_mdev_ops vfio_ops; > > struct virtio_mdev_ops virtio_ops; > > }; > > }; > > > > Maybe even: > > > > struct vfio_mdev_ops *m...
2019 Oct 16
0
[PATCH V3 4/7] mdev: introduce device specific ops
...ucture as the ops, but I > > > > > > think this approach was chosen for simplicity. We could still do > > something like: > > > > > > > > > > > > int mdev_set_class_struct(struct device *dev, const struct > > > > > > mdev_class_struct *class); > > > > > > > > > > > > struct mdev_class_struct { > > > > > > u16 id; > > > > > > union { > > > > > > struct vfio_mdev_ops vfio_ops; > > > > > > struct virtio_mdev_ops virtio_...
2019 Oct 16
0
[PATCH V3 4/7] mdev: introduce device specific ops
...f > > > > having the class in the same structure as the ops, but I think this > > > > approach was chosen for simplicity. We could still do something like: > > > > > > > > int mdev_set_class_struct(struct device *dev, const struct > > > > mdev_class_struct *class); > > > > > > > > struct mdev_class_struct { > > > > u16 id; > > > > union { > > > > struct vfio_mdev_ops vfio_ops; > > > > struct virtio_mdev_ops virtio_ops; > > > > }; > > > > }; > &gt...
2019 Oct 17
2
[PATCH V3 4/7] mdev: introduce device specific ops
...;>>>> having the class in the same structure as the ops, but I think this >>>>> approach was chosen for simplicity. We could still do something like: >>>>> >>>>> int mdev_set_class_struct(struct device *dev, const struct >>>>> mdev_class_struct *class); >>>>> >>>>> struct mdev_class_struct { >>>>> u16 id; >>>>> union { >>>>> struct vfio_mdev_ops vfio_ops; >>>>> struct virtio_mdev_ops virtio_ops; >>>>> }; >>>>> };...
2019 Oct 17
2
[PATCH V3 4/7] mdev: introduce device specific ops
...;>>>> having the class in the same structure as the ops, but I think this >>>>> approach was chosen for simplicity. We could still do something like: >>>>> >>>>> int mdev_set_class_struct(struct device *dev, const struct >>>>> mdev_class_struct *class); >>>>> >>>>> struct mdev_class_struct { >>>>> u16 id; >>>>> union { >>>>> struct vfio_mdev_ops vfio_ops; >>>>> struct virtio_mdev_ops virtio_ops; >>>>> }; >>>>> };...