From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 6FD0F1B214 for ; Mon, 30 Oct 2017 13:56:14 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id b9so16264453wmh.0 for ; Mon, 30 Oct 2017 05:56:14 -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; bh=WGI0d5MBiwWv/1D/yR1Ie6OQk2eXuKw8OR/2ti209xo=; b=wcqG2A36xp3tqXlB+q2yzq4fD3jCWpQgOk8KVBB4ZNb+88DdhbTMXBudGqPQcJqmes nfpXLY06u4cTksgObw9it/98AxI+TmRkT/drz/FQxi2JjYCo5XzQBALf2n3CGPD3qnzV I8coPa5I4d9837O/L2wUNqcmBOt5feMQMawRlY4zJegwpGhkxw/A2LD/n3WdsFi9xu0l O4xBBUjWKKXwicfULhZ672WcmjSQHs6frv23D8+tJ0xhQNTMg1icgoXZzADpJnS58na/ LVLL0sMVNrRC9Qw3vXEE7rz2FLYjfZPQLhn/OAoRxsus5rRBpKehpMDsuKZAj/kaiiMA DzrQ== 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; bh=WGI0d5MBiwWv/1D/yR1Ie6OQk2eXuKw8OR/2ti209xo=; b=LxcoW729l1G4cnwcck3bN/C2kx5ZyelC11TpIGPxUExtKej2O6vGy18F1VKZBvl7UW I6EzthO/zCcTgJIKegNS8KDHSI6tRDSlL3bb/fiOKH6XAnN+HYp9lkbdk/y+yTvdtmmn 7luwoILQNEKqz8UQ/NDHLETuHOnufyY8O/XxByr1xxr19o0LfrUniW3RgFVz7PkgPQ5j iC16Io1L+8gzNW4NtLqXxaJjW51AijwOjPZxZjK+v3xKwtN7x8AAaSOq8RWmZkem/6LA X51qie1CWwVRLV6tpEhUXOFET/oEHYGVVWnchc7kdYElM7Y33DmXKNsbRBdBI6bUNvMK cjgg== X-Gm-Message-State: AMCzsaVPc3j+RDVYB3GS60m058kWh8L6RQnFvLlcrcjJ1SDb0/cypjUh 6vfFP6dTaobX1O8xGppTIid5DeXH X-Google-Smtp-Source: ABhQp+RphMq2xrfmR7lKI2CCPl4RmsHW2o2zW/q2pnEpopCyEr1RGIGTKp+14IGR5pPmVxcyMXwtpQ== X-Received: by 10.28.140.18 with SMTP id o18mr3811929wmd.145.1509368173694; Mon, 30 Oct 2017 05:56:13 -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 k13sm29583229wrd.95.2017.10.30.05.56.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Oct 2017 05:56:12 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Mon, 30 Oct 2017 13:55:53 +0100 Message-Id: <6cf7636787d57a18ce5f7e4c54b7e5951d3b70a9.1509367736.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <3195804eda227dde6bb6d80122b2af25e071e1c1.1509367736.git.gaetan.rivet@6wind.com> References: <3195804eda227dde6bb6d80122b2af25e071e1c1.1509367736.git.gaetan.rivet@6wind.com> Subject: [dpdk-dev] [PATCH v2 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Oct 2017 12:56:14 -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 --- 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