From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id EDB71559C for ; Sun, 7 Feb 2016 14:51:19 +0100 (CET) Received: by mail-pf0-f182.google.com with SMTP id o185so95282086pfb.1 for ; Sun, 07 Feb 2016 05:51:19 -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=R1G9/4QhO6DDnKAg5YJd7ncdWs8gqC5rqWdgKYJ4lMQ=; b=Z4OXfCIisav1HSTLv2D8xNz5wJhQDBQqylFwzlquv8rY6w59Z/9i/bI8CBWB1pQBzN OjZGz47zQhfATiIk3gWeoENNryPokE5HQ6UnRAXWopWzN2eg1DbKOk7LRCip/P9QJlqW OwTY/zuCj14LYgVH/BNak8w3amySQPVpmWmGAIAsyjmNt2EbjVmRi2VD0kWnpKi1ovkN Wapk12yi88Y8/HOodbz98d6RBv8zk5CN5DIyFVrxFOv0Za0bVpVONS1xaVfjMsER+zIm 0fjCok7d2kubQSi5mnY1YW/EQNUZkMtNBetIuzWaJGHQv5LD1bbyqlVpdfg4hzRLTRNG dn8g== 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=R1G9/4QhO6DDnKAg5YJd7ncdWs8gqC5rqWdgKYJ4lMQ=; b=Y1SG8ACXpzJ8jSTKvhJWgbWz6xzdXr1EL8ur5CHQe9l7bQCqqeP6Fi409yGfX3KIEA gFV0hOJQNOL9u36CkovWdrNasutYueoLCv1BPdBBlQYHy0/LcxnYMd5bdTUa+6jBbtj0 nMlh4gRwgznjaY5Z10mYTz4bZnLjSk7+rGI/bSlNscLbizv6ZKW1RPv7rwYS+JoFLg22 1NIWdDPN6bD/o0Y9NQn8uNDLu7rcYKSDPQioE0fCwo7FBkMZpMcu/9eNkWxzglGJPi8q xBdzL6K/SQ1Y2oaxjYVyoyXiaDOPlnQlhh3L/KStMrMUsDPOIbAB/beav1GYxiHSN+/x rGTA== X-Gm-Message-State: AG10YORrxyPO4HndVoFxwlR/bMKEFMueyu6hyogC4cWryAm2wELCs408VX1nnl3gk6mnn6Xe X-Received: by 10.98.19.205 with SMTP id 74mr35150199pft.31.1454853079178; Sun, 07 Feb 2016 05:51:19 -0800 (PST) Received: from santosh-Latitude-E5530-non-vPro.mvista.com ([106.216.141.181]) by smtp.gmail.com with ESMTPSA id r87sm36763174pfa.61.2016.02.07.05.51.15 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Feb 2016 05:51:17 -0800 (PST) From: Santosh Shukla To: dev@dpdk.org Date: Sun, 7 Feb 2016 19:21:04 +0530 Message-Id: <1454853068-14621-1-git-send-email-sshukla@mvista.com> X-Mailer: git-send-email 1.7.9.5 Subject: [dpdk-dev] [PATCH v7 0/4] 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: Sun, 07 Feb 2016 13:51:20 -0000 Hi, Patch series to allow access to virtio using vfio interface. Tested for vfio-noiommu mode for x86_64/arm64{thunderX} platform. patch series builds successfully for armv7/v8/x86_64/i686. Note: Rebased on David(s) recent patch series titled "rework virtio for ioport". 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. v6-->v7: - added support for vfio map/umap/rd/wr method for linuxapp. - Tested for x86 / arm64{thunderX} vfio mode both. v5-->v6: - Removed KDRV_NOIOMMU mode - patchseries aligned in topic-wise ordered way - Introduced virtio_io.h; has in/out api, and header file sys/io.h - Renamed virtio_vfio_rw.h to virtio_vfio_io.h, renamed ioport_in/out{b,w,l} to vfio_in/out{b,w,l} v4 --> v5: - Introducing RTE_KDRV_VFIO_NOIOMMU driver mode - Incorporated v4 review comments, Pl. refer each patchset for review change. For older version(v4.. v1) patch history, refer [2]. Thanks. [1] https://github.com/sshukla82/dpdk.git branch virtio-vfio-v6-review [2] http://comments.gmane.org/gmane.comp.networking.dpdk.devel/31402 Santosh Shukla (4): eal/linux: never check iopl for arm virtio: Introduce config RTE_VIRTIO_INC_VECTOR eal/linux: vfio: ignore mapping for ioport region eal/linux: vfio: add pci ioport support 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_rxtx.c | 16 ++++++- drivers/net/virtio/virtio_rxtx.h | 2 + lib/librte_eal/linuxapp/eal/eal.c | 2 + lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 68 ++++++++++++++++++++++------ 10 files changed, 83 insertions(+), 18 deletions(-) -- 1.7.9.5