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

Jason Wang jasowang at redhat.com
Tue Nov 19 02:41:31 UTC 2019


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.

Thanks



More information about the dri-devel mailing list