[Intel-gfx] [PATCH V13 4/6] mdev: introduce mediated virtio bus
Jason Gunthorpe
jgg at mellanox.com
Tue Nov 19 12:38:08 UTC 2019
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 +0000, 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 share nothing with mdev (ie mdev-vfio), why is it on the
> > > > same bus?
> > > I must be missing something - which bus do they share?
> > mdev_bus_type ?
> >
> > Jason
>
>
> Note: virtio has its own bus: mdev_virtio_bus_type. So they are not the same
> bus.
That is even worse, why involve struct mdev_device at all then?
Jason
More information about the Intel-gfx
mailing list