This patch set add basic infrastrucure to run virtio-net-pci pmd driver for arm64/arm. Tested on ThunderX platfrom. Verified for existing dpdk(s) test applications like: - ovs-dpdk-vhost-user: across the VM's, for the use-cases like guest2guest and Host2Guest - testpmd application: Tested for max virtio-net-pci interface currently supported in kernel i.e. 31 interface.
Builds successfully for armv7/v8/thunderX and x86_64/i686 platforms. Made sure that patch changes donot break for x86_64 case. Done similar tests for x86_64 too. Patch summary: - First patch adds RTE_VIRTIO_INC_VECTOR config, much needed for archs like arm/arm64 as they don't support vectored implementation, also wont able to build. - Second patch is in-general fix for i686. - Third patch is to emulate x86-style of {in,out}[b,w,l] api support for armv7/v8. As virtio-net-pci pmd driver uses those apis for port rd/wr {b,w,l} - Fourth patch to enable VIRTIO_PMD feature in armv7/v8/thunderX config. - Fifth patch to disable iopl syscall, As arm/arm64 linux kernel doesn't support them. - Sixth patch introduces ioport memdevice called /dev/igb_ioport by which virtio pmd driver could able to rd/wr PCI_IOBAR. {applicable for arm/arm64 only, tested for arm64 as of now} On Sixth patch: There is other way to achieve desired by adding support in linux kernel character memory driver such that user could do file rd/wr for half-word/word size data. Currently character memory driver support byte rd/wr via interface `/dev/port`. Such proposal already discussed long back at lkml thread [2] but couldn;t got much atttaction though! I am going to send out similar implementation as an RFC to dpdk-dev thread and to linux-kernel community{todo}. However like to listen to current approach review/comment/feedback. Thanks in advance. patchset developed on upstream dpdk commit 538020a then pulled jerin's dependancy patches [1] on top. [1] http://permalink.gmane.org/gmane.comp.networking.dpdk.devel/29068 [2] https://lkml.org/lkml/2014/5/10/189 Santosh Shukla (6): virtio: Introduce config RTE_VIRTIO_INC_VECTOR config: i686: set RTE_VIRTIO_INC_VECTOR=n virtio: armv7/v8: Introdice api to emulate x86-style of PCI/ISA ioport access config: armv7/v8: Enable RTE_LIBRTE_VIRTIO_PMD linuxapp: eal: arm: Always return 0 for rte_eal_iopl_init() virtio: arm/arm64: memory mapped IO support in pmd driver config/common_linuxapp | 1 + config/defconfig_arm-armv7a-linuxapp-gcc | 6 +- config/defconfig_arm64-armv8a-linuxapp-gcc | 6 +- 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 | 138 ++++++++++++- drivers/net/virtio/virtio_pci.h | 15 ++ drivers/net/virtio/virtio_rxtx.c | 7 + .../common/include/arch/arm/rte_isa_io.h | 212 ++++++++++++++++++++ lib/librte_eal/linuxapp/eal/eal.c | 3 + lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 80 +++++++- 12 files changed, 465 insertions(+), 7 deletions(-) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_isa_io.h -- 1.7.9.5