From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gaetan Rivet Subject: [PATCH v3 2/2] eal: warn user that VFIO is disabled Date: Mon, 30 Oct 2017 17:36:53 +0100 Message-ID: <6d3b81d98b4d1b3754c616f71b293f2119d79bd1.1509381300.git.gaetan.rivet@6wind.com> References: <3195804eda227dde6bb6d80122b2af25e071e1c1.1509367736.git.gaetan.rivet@6wind.com> <8492fe4cf1a8d6f15d389c9148e4942f1d060a40.1509381300.git.gaetan.rivet@6wind.com> Cc: Gaetan Rivet To: dev@dpdk.org Return-path: 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 ; Mon, 30 Oct 2017 17:37:13 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id y39so13269930wrd.4 for ; Mon, 30 Oct 2017 09:37:13 -0700 (PDT) In-Reply-To: <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> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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