[libvirt PATCH v2 2/3] nodedev: refactor virMediatedDeviceGetIOMMUGroupNum()