Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-26 Thread Rob Miller
On Tue, Nov 19, 2019 at 9:16 PM Jason Wang wrote: > > On 2019/11/19 下午10:14, Jason Gunthorpe wrote: > > On Tue, Nov 19, 2019 at 10:02:08PM +0800, Jason Wang wrote: > >> On 2019/11/19 下午8:38, Jason Gunthorpe wrote: > >>> On Tue, Nov 19, 2019 at 10:41:31AM +0800, Jason Wang wrote: > On

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-20 Thread Jason Wang
On 2019/11/20 下午9:49, Jason Gunthorpe wrote: On Wed, Nov 20, 2019 at 10:14:26AM +0800, Jason Wang wrote: I don't quite get the question here. In the driver model the bus_type and foo_device are closely linked. I don't get the definition of "closely linked" here. Do you think the bus and

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-20 Thread Jason Gunthorpe
On Wed, Nov 20, 2019 at 10:14:26AM +0800, Jason Wang wrote: > > > I don't quite get the question here. > > In the driver model the bus_type and foo_device are closely > > linked. > > I don't get the definition of "closely linked" here. Do you think the bus > and device implement virtual bus

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-19 Thread Jason Wang
On 2019/11/19 下午10:14, Jason Gunthorpe wrote: On Tue, Nov 19, 2019 at 10:02:08PM +0800, Jason Wang wrote: On 2019/11/19 下午8:38, Jason Gunthorpe wrote: On Tue, Nov 19, 2019 at 10:41:31AM +0800, Jason Wang wrote: On 2019/11/19 上午4:28, Jason Gunthorpe wrote: On Mon, Nov 18, 2019 at 03:27:13PM

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-19 Thread Jason Gunthorpe
On Tue, Nov 19, 2019 at 10:02:08PM +0800, Jason Wang wrote: > > On 2019/11/19 下午8:38, Jason Gunthorpe wrote: > > On Tue, Nov 19, 2019 at 10:41:31AM +0800, Jason Wang wrote: > > > On 2019/11/19 上午4:28, Jason Gunthorpe wrote: > > > > On Mon, Nov 18, 2019 at 03:27:13PM -0500, Michael S. Tsirkin

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-19 Thread Jason Wang
On 2019/11/19 下午8:38, Jason Gunthorpe wrote: On Tue, Nov 19, 2019 at 10:41:31AM +0800, Jason Wang wrote: On 2019/11/19 上午4:28, Jason Gunthorpe wrote: On Mon, Nov 18, 2019 at 03:27:13PM -0500, Michael S. Tsirkin wrote: On Mon, Nov 18, 2019 at 01:41:00PM +, Jason Gunthorpe wrote: On Mon,

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-19 Thread Jason Gunthorpe
On Tue, Nov 19, 2019 at 10:41:31AM +0800, Jason Wang wrote: > > On 2019/11/19 上午4:28, Jason Gunthorpe wrote: > > On Mon, Nov 18, 2019 at 03:27:13PM -0500, Michael S. Tsirkin wrote: > > > On Mon, Nov 18, 2019 at 01:41:00PM +, Jason Gunthorpe wrote: > > > > On Mon, Nov 18, 2019 at 06:59:21PM

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Randy Dunlap
Hi, On 11/18/19 2:59 AM, Jason Wang wrote: > diff --git a/drivers/mdev/Kconfig b/drivers/mdev/Kconfig > index 4561f2d4178f..cd84d4670552 100644 > --- a/drivers/mdev/Kconfig > +++ b/drivers/mdev/Kconfig > @@ -17,3 +17,13 @@ config VFIO_MDEV > more details. > > If you don't know

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Jason Wang
On 2019/11/19 上午4:28, Jason Gunthorpe wrote: On Mon, Nov 18, 2019 at 03:27:13PM -0500, Michael S. Tsirkin wrote: On Mon, Nov 18, 2019 at 01:41:00PM +, Jason Gunthorpe wrote: On Mon, Nov 18, 2019 at 06:59:21PM +0800, Jason Wang wrote: +struct bus_type mdev_virtio_bus_type; + +struct

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Jason Wang
On 2019/11/18 下午9:41, Jason Gunthorpe wrote: On Mon, Nov 18, 2019 at 06:59:21PM +0800, Jason Wang wrote: +struct bus_type mdev_virtio_bus_type; + +struct mdev_virtio_device { + struct mdev_device mdev; + const struct mdev_virtio_ops *ops; + u16 class_id; +}; This seems to

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Jason Gunthorpe
On Mon, Nov 18, 2019 at 03:27:13PM -0500, Michael S. Tsirkin wrote: > On Mon, Nov 18, 2019 at 01:41:00PM +, Jason Gunthorpe wrote: > > On Mon, Nov 18, 2019 at 06:59:21PM +0800, Jason Wang wrote: > > > +struct bus_type mdev_virtio_bus_type; > > > + > > > +struct mdev_virtio_device { > > > +

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Michael S. Tsirkin
On Mon, Nov 18, 2019 at 01:41:00PM +, Jason Gunthorpe wrote: > On Mon, Nov 18, 2019 at 06:59:21PM +0800, Jason Wang wrote: > > +struct bus_type mdev_virtio_bus_type; > > + > > +struct mdev_virtio_device { > > + struct mdev_device mdev; > > + const struct mdev_virtio_ops *ops; > > + u16

Re: [Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Jason Gunthorpe
On Mon, Nov 18, 2019 at 06:59:21PM +0800, Jason Wang wrote: > +struct bus_type mdev_virtio_bus_type; > + > +struct mdev_virtio_device { > + struct mdev_device mdev; > + const struct mdev_virtio_ops *ops; > + u16 class_id; > +}; This seems to share nothing with mdev (ie mdev-vfio), why

[Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus

2019-11-18 Thread Jason Wang
This patch implements a mediated virtio bus over mdev framework. This will be used by the future virtio-mdev and vhost-mdev on top to allow driver from either userspace or kernel to control the device which is capable of offloading virtio datapath. Signed-off-by: Jason Wang --- MAINTAINERS