Re: [PATCH V8 5/9] vDPA: introduce vDPA bus

2020-03-25 Thread Jason Wang
On 2020/3/25 下午8:29, Jason Gunthorpe wrote: On Wed, Mar 25, 2020 at 04:27:07PM +0800, Jason Wang wrote: +struct vdpa_device *__vdpa_alloc_device(struct device *parent, + const struct vdpa_config_ops *config, + size_t

Re: [PATCH V8 5/9] vDPA: introduce vDPA bus

2020-03-25 Thread Jason Gunthorpe
On Wed, Mar 25, 2020 at 04:27:07PM +0800, Jason Wang wrote: > +struct vdpa_device *__vdpa_alloc_device(struct device *parent, > + const struct vdpa_config_ops *config, > + size_t size); > + > +#define

[PATCH V8 5/9] vDPA: introduce vDPA bus

2020-03-25 Thread Jason Wang
vDPA device is a device that uses a datapath which complies with the virtio specifications with vendor specific control path. vDPA devices can be both physically located on the hardware or emulated by software. vDPA hardware devices are usually implemented through PCIE with the following types: -