vfio/mdev: simplify mdev_type handling