[PATCH v3 07/10] vfio/mdev: Add mdev available instance checking to the core