From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header Date: Thu, 22 May 2014 05:49:02 -0700 (PDT) Message-ID: <13733877.G9DNOXLJDv@xps13> References: <4002874.rX8l5tMzHC@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Burakov, Anatoly" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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