From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 4B1918E74 for ; Thu, 14 Jan 2016 09:08:33 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 14 Jan 2016 00:08:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,293,1449561600"; d="scan'208";a="726741336" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 14 Jan 2016 00:08:31 -0800 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 14 Jan 2016 00:08:31 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 14 Jan 2016 00:08:31 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.215]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.231]) with mapi id 14.03.0248.002; Thu, 14 Jan 2016 16:08:29 +0800 From: "Xie, Huawei" To: Yuanhan Liu Thread-Topic: [PATCH v2 7/7] virtio: add 1.0 support Thread-Index: AdFOn8qVIMp9mFhvQbG10T5nROu3pg== Date: Thu, 14 Jan 2016 08:08:28 +0000 Message-ID: References: <1449719650-3482-1-git-send-email-yuanhan.liu@linux.intel.com> <1452581944-24838-1-git-send-email-yuanhan.liu@linux.intel.com> <1452581944-24838-8-git-send-email-yuanhan.liu@linux.intel.com> <20160114075040.GM19531@yliu-dev.sh.intel.com> <20160114075859.GN19531@yliu-dev.sh.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.213.225] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" , "Michael S. Tsirkin" Subject: Re: [dpdk-dev] [PATCH v2 7/7] virtio: add 1.0 support 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: Thu, 14 Jan 2016 08:08:33 -0000 On 1/14/2016 3:58 PM, Yuanhan Liu wrote:=0A= > On Thu, Jan 14, 2016 at 07:51:08AM +0000, Xie, Huawei wrote:=0A= >> On 1/14/2016 3:49 PM, Yuanhan Liu wrote:=0A= >>> On Thu, Jan 14, 2016 at 07:47:17AM +0000, Xie, Huawei wrote:=0A= >>>> On 1/12/2016 2:58 PM, Yuanhan Liu wrote:=0A= >>>>> Modern (v1.0) virtio pci device defines several pci capabilities.=0A= >>>> [snip]=0A= >>>>> +static void=0A= >>>>> +modern_notify_queue(struct virtio_hw *hw __rte_unused, struct virtqu= eue *vq)=0A= >>>>> +{=0A= >>>>> + modern_write16(1, vq->notify_addr);=0A= >>>>> +}=0A= >>>> Does virtio 1.0 only supports MMIO? MMIO has long VMEXIT latency than= =0A= >>>> PORT IO.=0A= >>> Virtio 1.0 supports three transport layer, including MMIO and PCI. And= =0A= >>> we use PCI only in our pmd driver.=0A= >> I don't mean that MMIO but use memory mapped IO for configuration.=0A= > Then, yes.=0A= =0A= 00:03.0 Ethernet controller: Red Hat, Inc Virtio network device=0A= Subsystem: Red Hat, Inc Device 0001=0A= Physical Slot: 3=0A= Flags: bus master, fast devsel, latency 0, IRQ 10=0A= I/O ports at c100 [size=3D32]=0A= Memory at febd1000 (32-bit, non-prefetchable) [size=3D4K]=0A= Memory at fe000000 (64-bit, prefetchable) [size=3D8M]=0A= Expansion ROM at feb40000 [disabled] [size=3D256K]=0A= Capabilities: [98] MSI-X: Enable+ Count=3D3 Masked-=0A= Capabilities: [84] Vendor Specific Information: Len=3D14 =0A= Capabilities: [70] Vendor Specific Information: Len=3D14 =0A= Capabilities: [60] Vendor Specific Information: Len=3D10 =0A= Capabilities: [50] Vendor Specific Information: Len=3D10 =0A= Capabilities: [40] Vendor Specific Information: Len=3D10 =0A= Kernel driver in use: igb_uio=0A= Kernel modules: virtio_pci=0A= =0A= c100 is still there. For the notification, try PORT IO if possible.=0A= =0A= >=0A= > --yliu=0A= >=0A= =0A=