From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gaetan.rivet@6wind.com>
Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com
 [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 8E06A1B2B0
 for <dev@dpdk.org>; Mon, 30 Oct 2017 17:37:13 +0100 (CET)
Received: by mail-wr0-f196.google.com with SMTP id y39so13269930wrd.4
 for <dev@dpdk.org>; Mon, 30 Oct 2017 09:37:13 -0700 (PDT)
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:in-reply-to:references
 :in-reply-to:references;
 bh=WGI0d5MBiwWv/1D/yR1Ie6OQk2eXuKw8OR/2ti209xo=;
 b=sAM3qHHiPmjK+l+qJ9ua1CpoG0IYn7knL7gaezF6U+KcxK4sExsUUH3VrUBwC2nd3I
 P74wQYDotS0LmEArXS0F7mMrjHqqiPxDDA3VFj591d0APhsl4miRg2G/UZueD9Hxssk9
 DYWM8xxiNfKurlrjcTm1m6J5BUQzRnVWFyv99W92iLckunvzN3YKpXblzeqeMH/2ugZ4
 xR3pZfTN28TPb+znG4ERRiGJrX1WjxAqp2WJ/1JEJLRVPq7QOnEmkID6Onjkbh6YMuAg
 DQ8ZK6eVmjUHokswHLxtZn3wV6H0lBiRHfOc0PcgtRpVscv70FV7qzaRjnh+PK2IXwIo
 rRTg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:in-reply-to:references;
 bh=WGI0d5MBiwWv/1D/yR1Ie6OQk2eXuKw8OR/2ti209xo=;
 b=r5TVoglGjskSOtInb8kRvKl9kUSKPW6WnbOLbvZLZxvYfTIw7FWeAOsAgDib6eTrgY
 VTDMSftz6yL85SQ1CVfH0e/yhGUglB6uFZhdgQ9a6WEIKC1Bfz49M7Zt1DONpjdGiEuj
 yZR4Rjhw3p081lJL2iruUwrKl6MyhPvNiYscCXDHi0qHDn+ZtUazTo0W8+eBq++U/N5O
 jQt2tDQS0ceitSa6N7a1iOQ4L8em2SkKQNfLH2je4YDm1Ogxn2U+bNolaj41PNr/zpTn
 EvITpbBHbnk6OIaNHlHKHuyYX81bWZmHQ4/95hRwsxjAJWppB7XZlkyJGxtBLr9kOQIV
 MYMA==
X-Gm-Message-State: AMCzsaW+MBU4P9ftoOJAT+hPUG2rOmN1rHh+N38Fp09BiNl7w0pdhx7U
 5slPBzQpiBnrOaWUmeZxsii39L2x
X-Google-Smtp-Source: ABhQp+SdpMeADvu/w/p0YaoQib2ROomcliZspvmsRR2o5MNhkeD1a/FgY4bmbXI9fw0yR4e+vGveIQ==
X-Received: by 10.223.169.167 with SMTP id b36mr9205371wrd.61.1509381432890;
 Mon, 30 Oct 2017 09:37:12 -0700 (PDT)
Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com.
 [62.23.145.78])
 by smtp.gmail.com with ESMTPSA id 68sm3562196wmh.2.2017.10.30.09.37.11
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Mon, 30 Oct 2017 09:37:12 -0700 (PDT)
From: Gaetan Rivet <gaetan.rivet@6wind.com>
To: dev@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>
Date: Mon, 30 Oct 2017 17:36:53 +0100
Message-Id: <6d3b81d98b4d1b3754c616f71b293f2119d79bd1.1509381300.git.gaetan.rivet@6wind.com>
X-Mailer: git-send-email 2.1.4
In-Reply-To: <8492fe4cf1a8d6f15d389c9148e4942f1d060a40.1509381300.git.gaetan.rivet@6wind.com>
References: <3195804eda227dde6bb6d80122b2af25e071e1c1.1509367736.git.gaetan.rivet@6wind.com>
 <8492fe4cf1a8d6f15d389c9148e4942f1d060a40.1509381300.git.gaetan.rivet@6wind.com>
In-Reply-To: <8492fe4cf1a8d6f15d389c9148e4942f1d060a40.1509381300.git.gaetan.rivet@6wind.com>
References: <8492fe4cf1a8d6f15d389c9148e4942f1d060a40.1509381300.git.gaetan.rivet@6wind.com>
Subject: [dpdk-dev] [PATCH v3 2/2] eal: warn user that VFIO is disabled
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Oct 2017 16:37:13 -0000

If VFIO is not compatible with the kernel used, print a soft warning to
the user if RTE_EAL_VFIO was still enabled in the configuration.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---
 lib/librte_eal/linuxapp/eal/eal_vfio.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_eal/linuxapp/eal/eal_vfio.h b/lib/librte_eal/linuxapp/eal/eal_vfio.h
index 766d004..fadd274 100644
--- a/lib/librte_eal/linuxapp/eal/eal_vfio.h
+++ b/lib/librte_eal/linuxapp/eal/eal_vfio.h
@@ -183,6 +183,8 @@ int vfio_mp_sync_setup(void);
 #define SOCKET_ERR 0xFF
 
 #define VFIO_PRESENT
+#else
+#pragma message("VFIO configured but not supported by this kernel, disabling.")
 #endif /* kernel version */
 #endif /* RTE_EAL_VFIO */
 
-- 
2.1.4