Hi Ferruh, On Mon, Oct 30, 2017 at 10:32:27PM +0000, Ferruh Yigit wrote: > Revert back to using VFIO_PRESENT as a marker to enable compilation > of VFIO-related segments. > > VFIO_PRESENT is the combination of user configuration RTE_EAL_VFIO and > kernel version support check. > > eal_vfio.h VFIO_PRESENT related check ordered to be compatible with > rte_vfio.h one, no functional modification. > > Fixes: 279b581c897d ("vfio: expose functions") > > Signed-off-by: Jerin Jacob <jerin.ja...@caviumnetworks.com> > Signed-off-by: Gaetan Rivet <gaetan.ri...@6wind.com> > Signed-off-by: Ferruh Yigit <ferruh.yi...@intel.com> > --- > v4: > > * Alternative to v3, not superseding it, need to decide which one to > get. This one: > * fixes vfio for new kernels > * fixes build for old kernels for vfio enabled in config case > * print warning if vfio enabled in config but not supported by kernel >
Thanks for the v4. Well, as I stated before, I am more of the opinion of letting the VFIO_PRESENT define only within eal_vfio.h. But in the end, as long as everything is working, I'm fine with it. Unless someone is explicitly interested in going with my version, let's keep yours. If needed I can always submit a new v4 that would actually work with old kernels. Sorry about the mess concerning VFIO. I found late in the work that I needed to touch it, and did not have the test-bed for it.