From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 5412DC48C for ; Thu, 28 Jan 2016 15:41:13 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id 128so13494263wmz.1 for ; Thu, 28 Jan 2016 06:41:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=rL/0UQRzTnRa2zWa4sWERL5Cbq6FwKv8/h7sFiPLaqE=; b=MlyHsEHKKzLvP0GiQTutqDfReY4W43+VcM23aidP0BI4mToM9jIRVbyIsXuX/ddA7k OJcqBIKk1JYivq2kxDmRfF6NIyaP6OubBKER57fBDM/ofPy50kj9vkcMWRN+H46xKbVN Jtu8gU3un2nusey6TDpjS7H311MUJwha685g3DEZoEY1TDn992iJQEcAPl5rr/HY82R8 cewnCraswnmEEceb/cNCAmyv0a2dMGLx33VcTjWEZz5R7GdGCVe4q+wpZSmZfPvB2Tpv HM6ozEf4yY4IbrDb3brhMSAwV0JHT1rgXqAO7+yvgNEoBxoegY3ATSOcX9Y2impmm9UA jlTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=rL/0UQRzTnRa2zWa4sWERL5Cbq6FwKv8/h7sFiPLaqE=; b=P8xRgP3eGJ7VSkxohnILChtUoJxVoCGiGRP/UXPS3sNqspub8LOsLYl0XcOPJQ/OS2 rfBrRszU2xqJMpHyvO+yo+jPLxPvbsLnXRqYIIHdzikmMbESaTxqWXcXhViJK0lzrDxH 1smQ69f/0kVXeYfcNHjvHoPKEJ/fVZ2bktIutSiGZKUrN9ODoNYnTCMQKq2hI/znqjXb UiaNEl3mKYojBMR/QQx/7YfmCkqUYYUYrc7EENUGS5H8HDwtbpN/4A81TB55AvBaBahy 7sJ2Qbb/N3TzvmFOvSFmFXDcPIe2PCiL6MgyXkNCHkXRvFSw+968Yjo6wLD6gHZKf4LC AmvQ== X-Gm-Message-State: AG10YOScQpfRISc7Mi4UqRFRz70/JBjha8H4iduA0bE2n7imLbVt3s7Tepka6OG/Ay46fKFB X-Received: by 10.28.55.209 with SMTP id e200mr3744301wma.2.1453992073167; Thu, 28 Jan 2016 06:41:13 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id b1sm11405046wjy.0.2016.01.28.06.41.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 06:41:12 -0800 (PST) From: Thomas Monjalon To: "Burakov, Anatoly" Date: Thu, 28 Jan 2016 15:40:01 +0100 Message-ID: <2132629.COtjSkm5oU@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1453913438-22991-1-git-send-email-anatoly.burakov@intel.com> <26948068.xeVA9KiJZ0@xps13> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v6] vfio: Support for no-IOMMU mode 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: Thu, 28 Jan 2016 14:41:13 -0000 2016-01-28 14:16, Burakov, Anatoly: > Hi Thomas, > > > 2016-01-28 11:57, Anatoly Burakov: > > > +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) > > > > Why not #ifndef VFIO_NOIOMMU_IOMMU? > > It would avoid some backport issue. > > I don't see how it could. Versions post-4.5 will have VFIO_NOIOMMU_IOMMU, so no issue there. Pre-4.5 versions, whether they do or do not have VFIO_NOIOMMU_IOMMU defined, will have RTE_VFIO_NOIOMMU defined as 8 regardless. Are we sure it will ever be backported as 8? Anyway I think it's better to avoid version number checks. What happens if the feature is reverted from 4.5 as it was from 4.4?