-static int mtty_reset(struct mdev_device *mdev) +static int mtty_reset(struct mdev_state *mdev_stte)
Nit pick: s/mdev_stte/mdev_state
+static const struct vfio_device_ops mtty_dev_ops = {+ .name = "vfio-mdev",
I think name should be different that 'vfio-mdev', probably 'vfio-mdev-mtty' or 'vfio-mtty' Rest looks fine to me. Reviewed-by: Kirti Wankhede <kwankhede@xxxxxxxxxx>