Re: [PATCH] vhost: introduce mdev based hardware backend

Jason Wang
2019-09-27T03:51:54Z

On 2019/9/27 上午11:46, Jason Wang wrote:
> +
> +static struct mdev_class_id id_table[] = {
> +    { MDEV_ID_VHOST },
> +    { 0 },
> +};
> +
> +static struct mdev_driver vhost_mdev_driver = {
> +    .name    = "vhost_mdev",
> +    .probe    = vhost_mdev_probe,
> +    .remove    = vhost_mdev_remove,
> +    .id_table = id_table,
> +};
> +

And you probably need to add MODULE_DEVICE_TABLE() as well.

Thanks