From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id B9CA0AFCE for ; Tue, 27 May 2014 16:29:33 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 27 May 2014 07:29:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.98,919,1392192000"; d="scan'208";a="437354573" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by azsmga001.ch.intel.com with ESMTP; 27 May 2014 07:29:42 -0700 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.245]) by IRSMSX103.ger.corp.intel.com ([169.254.3.58]) with mapi id 14.03.0123.003; Tue, 27 May 2014 15:29:42 +0100 From: "Burakov, Anatoly" To: Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header Thread-Index: AQHPc3pkDKAc+1Is0Ue2Bw208Qig/JtLJdiAgAFplhD///FDAIAAEelAgAf10hA= Date: Tue, 27 May 2014 14:29:41 +0000 Message-ID: References: <4002874.rX8l5tMzHC@xps13> <13733877.G9DNOXLJDv@xps13> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2 07/16] Add support for VFIO interrupts, add VFIO header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2014 14:29:34 -0000 Hi Thomas, > > I don't know if there is something defined in a Linux header which coul= d > 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. >=20 > Not sure VFIO defines any macros anywhere, but I'll look into it, thanks. >=20 There probably isn't. At least I don't see anything in commit log. So unles= s there's a way to get config options from kernel at compile-time in usersp= ace code, I don't think we can do anything else than kernel version check. Best regards, Anatoly Burakov DPDK SW Engineer