[PATCH v2 6/9] vfio/mdev: Add mdev available instance checking to the core