From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4473BA6A for ; Fri, 6 Mar 2015 04:41:30 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 05 Mar 2015 19:41:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,351,1422950400"; d="scan'208";a="661251609" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by orsmga001.jf.intel.com with ESMTP; 05 Mar 2015 19:41:28 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX106.gar.corp.intel.com (10.221.44.98) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 6 Mar 2015 11:41:27 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.62]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.234]) with mapi id 14.03.0195.001; Fri, 6 Mar 2015 11:41:26 +0800 From: "Ouyang, Changchun" To: Stephen Hemminger , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 1/2] virtio: initialize iopl when device is initialized Thread-Index: AQHQV6bysf6xQ3GsREmRqvpVGfnolZ0Oz1YA Date: Fri, 6 Mar 2015 03:41:25 +0000 Message-ID: References: <1425602726-26538-1-git-send-email-stephen@networkplumber.org> <1425602726-26538-2-git-send-email-stephen@networkplumber.org> In-Reply-To: <1425602726-26538-2-git-send-email-stephen@networkplumber.org> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/2] virtio: initialize iopl when device is initialized 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: Fri, 06 Mar 2015 03:41:30 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Stephen > Hemminger > Sent: Friday, March 6, 2015 8:45 AM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH 1/2] virtio: initialize iopl when device is in= itialized >=20 > The virtio driver needs to use in/out instructions therefore it must init= ialize > using iopl(2) system call. The problem is that virtio initialization happ= ens very > early, and any application that uses daemon() or calls eal_init later in = another > context will fail. >=20 > The fix is to move the iopl into rte_eal_init. >=20 Why need move virtio specific code into rte_eal_init? thanks Changchun