[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-27 Thread Thomas Monjalon
2014-05-27 14:40, Burakov, Anatoly: > > 2014-05-27 14:29, Burakov, Anatoly: > > > > > 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

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-27 Thread Thomas Monjalon
2014-05-27 14:29, Burakov, Anatoly: > > > 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. > > > > Not sure VFIO def

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-27 Thread Burakov, Anatoly
Hi Thomas, > 2014-05-27 14:29, Burakov, Anatoly: > > > > 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. > >

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-27 Thread Burakov, Anatoly
Hi Thomas, > > 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. > > Not sure VFIO defines any macros anywhere, b

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-27 Thread Xu, HuilongX
Creating code to handle VFIO interrupts in EAL interrupts, and also adding a header eal_vfio.h. This header checks two things: * checks if CONFIG_RTE_EAL_VFIO was enabled during build time * checks that kernel version is 3.6+ so that DPDK would still compile on older kernels despite VFIO compila

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-22 Thread Burakov, Anatoly
Hi Thomas, > 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. Not sure VFIO defines any macros anywhere, but I'll look i

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-22 Thread Burakov, Anatoly
Hi Thomas, > 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? Best regards, Anatoly Burakov DPDK SW Engineer

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-22 Thread Thomas Monjalon
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

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-21 Thread Thomas Monjalon
2014-05-19 16:51, Anatoly Burakov: > Creating code to handle VFIO interrupts in EAL interrupts, and also > adding a header eal_vfio.h. Maybe it's better to have 2 patches here. > This header checks two things: > * checks if CONFIG_RTE_EAL_VFIO was enabled during build time > * checks that kernel

[dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header

2014-05-19 Thread Anatoly Burakov
Creating code to handle VFIO interrupts in EAL interrupts, and also adding a header eal_vfio.h. This header checks two things: * checks if CONFIG_RTE_EAL_VFIO was enabled during build time * checks that kernel version is 3.6+ so that DPDK would still compile on older kernels despite VFIO compila