From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 409645946 for ; Wed, 27 Aug 2014 23:18:01 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 27 Aug 2014 14:14:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,414,1406617200"; d="scan'208";a="582579562" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 27 Aug 2014 14:22:05 -0700 Received: from fmsmsx105.amr.corp.intel.com ([169.254.5.78]) by FMSMSX108.amr.corp.intel.com ([169.254.10.75]) with mapi id 14.03.0195.001; Wed, 27 Aug 2014 14:22:05 -0700 From: "Patel, Rashmin N" To: "Xie, Huawei" , David Marchand , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary Thread-Index: AQHPwTf4ruCtCDu990W69LQOSUCEapvkLTnQgADJyHA= Date: Wed, 27 Aug 2014 21:22:04 +0000 Message-ID: References: <1409062300-17004-1-git-send-email-david.marchand@6wind.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.34.85.228] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary 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: Wed, 27 Aug 2014 21:18:01 -0000 I think iopl() was added to have permission to do Port I/O for Virtio devic= e handling. -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Xie, Huawei Sent: Wednesday, August 27, 2014 2:22 AM To: David Marchand; dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary Hi David: The reason iopl is put in rte_eal_init is that we want all later created DP= DK processes/threads inherit the iopl permission. If you only call iopl in pmd_init, RX/TX and other threads which needs io p= ermission will segmentation fault. -huawei > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of David Marchand > Sent: Tuesday, August 26, 2014 10:12 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH RFC 0/3] only call iopl when necessary >=20 > This patch series is just a little clean up to remove the=20 > unconditionnal call to iopl on linux. > Rather than call iopl() at the eal level, let the PMD that needs it=20 > call rte_eal_iopl_init(). >=20 > -- > David Marchand >=20 > David Marchand (3): > eal/bsd: fix fd leak > eal: don't call rte_eal_iopl_init unconditionnally > eal: remove unused flags field >=20 > lib/librte_eal/bsdapp/eal/eal.c | 6 ++---- > lib/librte_eal/common/include/rte_eal.h | 17 +++++++++++------ > lib/librte_eal/linuxapp/eal/eal.c | 11 ++++------- > lib/librte_pmd_virtio/virtio_ethdev.c | 15 ++++++++------- > 4 files changed, 25 insertions(+), 24 deletions(-) >=20 > -- > 1.7.10.4