2014-05-22 12:45, Burakov, Anatoly: > > In case VFIO is backported on older kernel, it would be better to check a > > related macro instead of Linux version. > > Not sure I follow. What is the "related macro" you're referring to?
I don't know if there is something defined in a Linux header which could help to check if VFIO is supported. But in general, it's better to check for a macro belonging to the feature instead of checking kernel version. -- Thomas