From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by dpdk.org (Postfix) with ESMTP id 70883379E for ; Thu, 14 Jan 2016 14:28:47 +0100 (CET) Received: by mail-pa0-f44.google.com with SMTP id uo6so361520441pac.1 for ; Thu, 14 Jan 2016 05:28:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=zqn/wc7HtyC0NIZoipG7JkNA4VKB47zJ3Th5qmvb5U4=; b=bWyo5n/LdJns4+7jCVEJqdWNHzqhjg1zDJJ4i/OL8SJpAUPerXa6i/3968d4K/Yafx ogGVISwdkO21GcfNyzteuSdU702vE5oS5LGRNI2/oTTxGARocCud091uwgleTZqQZTdu 5ocs6+ME9MkmYGGBMC3V4cHR3NmnAvUFVXmSbHvGwz9Wh/IK5Q2Rv2km0olpWbEmpkW4 NIuRKAB9jgVCsZY/PQld3SK89i4YmqYGedBzLXldxJAl6NZDu/TelMVYnG/oMhurT49b onaQsRner+TEcYaihQbDuyrUjUtT6SPdFLX3IABIJohiwKlHt5mRcCH6JqU8p31qy9Pi oQmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zqn/wc7HtyC0NIZoipG7JkNA4VKB47zJ3Th5qmvb5U4=; b=X4U/oZLRFfI4kT9+vbbAR61FyAf0nSe1XoWIfU2Od0SaETpEgT2jVSr2IkEJrejIRf 35Co+aiuIJ2/cBbKPfi3AmqY1JFfRPbbopomxOdQ5w8ayPp94Qg8GjKNbOuG+EJzPQnv 7YoT2NmIUqFzW3X6yVuK6BrWYfc9nqnBSAvfnyMTa0/YOHooHXcTXuu1lmQxiMivrhSX GARTAHKGRvJTLO2TbB3Y7vML5F79O07zrAZcW7kpY5d9BuHdF12Pf+z7U4des4UeBbRw mAvHt8QKAugvyoJPCpQ19IrHkfB1pEAsFFH8S0h0+4rngUcOTBp/drBYEDLs+1Nss/Mf DvDA== X-Gm-Message-State: ALoCoQkjFvd9Ca5/zqWXN/5VOAOyaFQiEpRxKsic+yTBgtUY/9Tey/+QNjdZ5PvVbAl3sLEO8rC5s9inKGa4W4ijkIiUqRcGqQ== X-Received: by 10.66.100.198 with SMTP id fa6mr5804736pab.123.1452778126692; Thu, 14 Jan 2016 05:28:46 -0800 (PST) Received: from santosh-Latitude-E5530-non-vPro.mvista.com ([111.93.218.67]) by smtp.gmail.com with ESMTPSA id v71sm9438472pfi.91.2016.01.14.05.28.43 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 05:28:45 -0800 (PST) From: Santosh Shukla To: dev@dpdk.org Date: Thu, 14 Jan 2016 18:58:23 +0530 Message-Id: <1452778117-30178-1-git-send-email-sshukla@mvista.com> X-Mailer: git-send-email 1.7.9.5 Subject: [dpdk-dev] [PATCH v4 00/14] Add virtio support for arm/arm64 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 13:28:47 -0000 Hi, This v4 patch uses vfio-noiommu-way to access virtio-net pci interface. Tested for arm64 thunderX platform. Patch builds for x86/i386/arm/armv8/thunderX. Tested with testpmd application. Refer v3 [1] cover letter for dependancy description: Step to enable vfio-noiommu mode: - modprobe vfio-pci echo 1 > /sys/module/vfio/parameters/enable_unsafe_* - then bind ./tools/dpdk_nic_bind.py -b vfio-pci 0000:00:03.0 - Testpmd application to try out for: ./app/testpmd -c 0x3 -n 4 -- -i --portmask=0x0 --nb-cores=1 --port-topology=chained On host side ping to tapX interface and observe pkt_cnt on guest side. For patch history from v1-->v3 pl. refer v3 cover letter [1] v3--> v4: - Incorporated v3 review comments, Thanks to Stephen, Yuan, Bruce for comment! - Tested for Huawei patch series titled "[PATCH v2 0/4] fix the issue that DPDK takes over virtio device blindly". - Patch no 11 and 13 are testonly patches used for this patch series [Anatoly/ Yuan] Major change in series: - Introducing vfio interface parse api in virtio pmd driver - Added vfio device specific private header in struct virtio_hw{} - Dummy in/oub x86-style api, just to pass build error for non-x86 arch for vfio mode. - VIRTIO_REG_RD/WR API(s) are now able to do rd/wr for both interfaces i.e. for vfio and igb_uio/ioport bar. Tested for both mode for x86 and also only for vfio for arm64 (non-x86) archs. So to try-out complete patc-set w/o cut-n-paste pain clone this [2] Thanks!. [1] http://permalink.gmane.org/gmane.comp.networking.dpdk.devel/31117 [2] https://github.com/sshukla82/dpdk.git branch master-virtio-vfio-v4 Anatoly Burakov (1): vfio: Support for no-IOMMU mode Santosh Shukla (12): virtio: Introduce config RTE_VIRTIO_INC_VECTOR config: i686: set RTE_VIRTIO_INC_VECTOR=n linuxapp: eal: arm: Always return 0 for rte_eal_iopl_init() linuxapp/vfio: ignore mapping for ioport region virtio_pci.h: build fix for sys/io.h for non-x86 arch eal: pci: vfio: add rd/wr func for pci bar space virtio: vfio: add api support to rd/wr ioport bar virtio: pci: extend virtio pci rw api for vfio interface virtio: ethdev: check for vfio interface virtio: pci: add dummy func definition for in/outb for non-x86 arch config: armv7/v8: Enable RTE_LIBRTE_VIRTIO_PMD virtio: enable vfio in pmd driver Yuanhan Liu (1): eal: pci: export pci_[un]map_device config/common_linuxapp | 1 + config/defconfig_arm-armv7a-linuxapp-gcc | 4 +- config/defconfig_arm64-armv8a-linuxapp-gcc | 4 +- config/defconfig_i686-native-linuxapp-gcc | 1 + config/defconfig_i686-native-linuxapp-icc | 1 + drivers/net/virtio/Makefile | 2 +- drivers/net/virtio/virtio_ethdev.c | 124 ++++++++++++++- drivers/net/virtio/virtio_pci.h | 128 +++++++++++++-- drivers/net/virtio/virtio_rxtx.c | 7 + drivers/net/virtio/virtio_vfio_rw.h | 107 +++++++++++++ lib/librte_eal/bsdapp/eal/eal_pci.c | 4 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 + lib/librte_eal/common/eal_common_pci.c | 4 +- lib/librte_eal/common/eal_private.h | 18 --- lib/librte_eal/common/include/rte_pci.h | 65 ++++++++ lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal.c | 2 + lib/librte_eal/linuxapp/eal/eal_pci.c | 41 ++++- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 28 ++++ lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 191 ++++++++++++++++------- lib/librte_eal/linuxapp/eal/eal_pci_vfio_dma.c | 84 ++++++++++ lib/librte_eal/linuxapp/eal/eal_vfio.h | 5 + lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 + 23 files changed, 740 insertions(+), 96 deletions(-) create mode 100644 drivers/net/virtio/virtio_vfio_rw.h create mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_vfio_dma.c -- 1.7.9.5