From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from compass.polito.it (compass.polito.it [130.192.55.110]) by dpdk.org (Postfix) with ESMTP id BE6CE2BCF for ; Thu, 25 Feb 2016 12:30:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by compass.polito.it (Postfix) with ESMTP id 94B2C100111 for ; Thu, 25 Feb 2016 12:30:32 +0100 (CET) Authentication-Results: compass.polito.it (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=studenti.polito.it DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= studenti.polito.it; h=content-type:content-type:to:from:from :subject:subject:message-id:date:date:received:mime-version :received:received:received; s=y2k10; t=1456399831; bh=Wd7fPe9Rk Ev0pbyaYuzZM/UeupzRYyZE5GZEngDahJI=; b=O9xkt0tVqxl+yU5foPgttm1H8 6I8fIqWzhcp7LrPfQi3hv2JuZMCi/uQWeVLYLcQCBPV9JA7jfPkqSyjEElScaZr+ d2VNA3v80LhMztSZEh9IpKvI52aAlawa4vmDKAdsHMvom9+eclULm2Kv3v+EOlwT x3Z+AazC6Ixua2MFCA= X-Virus-Scanned: amavisd-new at studenti.polito.it X-Spam-Flag: NO X-Spam-Score: -5.842 X-Spam-Level: X-Spam-Status: No, score=-5.842 tagged_above=-100 required=3.5 tests=[ALL_TRUSTED=-5, AWL=0.657, BAYES_00=-1.5, HTML_MESSAGE=0.001] autolearn=ham Received: from compass.polito.it ([127.0.0.1]) by localhost (compass.polito.it [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0gM53b1pNWFQ for ; Thu, 25 Feb 2016 12:30:31 +0100 (CET) Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: s203403@studenti.polito.it) by compass.polito.it (Postfix) with ESMTPSA id 6026910010E for ; Thu, 25 Feb 2016 12:30:31 +0100 (CET) Received: by mail-lf0-f50.google.com with SMTP id m1so31200642lfg.0 for ; Thu, 25 Feb 2016 03:30:31 -0800 (PST) X-Gm-Message-State: AG10YOQTA04qrA+T/DXPVv7rFnvyMLhN0STKtYODnZxX2d6dG++THhXXdvb5TDM+zG13ZfEZzkWWHZiNtZjzYQ== MIME-Version: 1.0 X-Received: by 10.25.20.165 with SMTP id 37mr16294241lfu.53.1456399830874; Thu, 25 Feb 2016 03:30:30 -0800 (PST) Received: by 10.25.23.208 with HTTP; Thu, 25 Feb 2016 03:30:30 -0800 (PST) Date: Thu, 25 Feb 2016 12:30:30 +0100 X-Gmail-Original-Message-ID: Message-ID: From: =?UTF-8?Q?Mauricio_V=C3=A1squez?= To: dev@dpdk.org, Huawei Xie , Yuanhan Liu , David Marchand Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] virtio PMD is not working with master version 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, 25 Feb 2016 11:30:32 -0000 Hello, I am trying to connect two virtual machines through Open vSwitch using vhost-user ports, on the host side everything looks fine. When using the standard virtio drivers both virtual machines are able to exchange traffic, but when I load the virtio PMD and run a DPDK application it shows the following error message: ... EAL: PCI device 0000:00:04.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: PCI memory mapped at 0x7f892dc00000 PMD: virtio_read_caps(): [40] skipping non VNDR cap id: 11 PMD: virtio_read_caps(): no modern virtio pci device found. PMD: vtpci_init(): trying with legacy virtio pci. EAL: eal_parse_sysfs_value(): cannot open sysfs value /sys/bus/pci/devices/0000:00:04.0/uio/uio0/portio/port0/start EAL: pci_uio_ioport_map(): cannot parse portio start EAL: Error - exiting with code: 1 Cause: Requested device 0000:00:04.0 cannot be used ... I tried it using the master version of DPDK, when I use the 2.2 version it works without problems: ... PMD: parse_sysfs_value(): parse_sysfs_value(): cannot open sysfs value /sys/bus/pci/devices/0000:00:04.0/uio/uio0/portio/port0/size PMD: virtio_resource_init_by_uio(): virtio_resource_init_by_uio(): cannot parse size PMD: virtio_resource_init_by_ioports(): PCI Port IO found start=0xc100 with size=0x20 PMD: virtio_negotiate_features(): guest_features before negotiate = cf8020 PMD: virtio_negotiate_features(): host_features before negotiate = 40268020 PMD: virtio_negotiate_features(): features after negotiate = 68020 PMD: eth_virtio_dev_init(): PORT MAC: 00:00:00:00:00:11 PMD: eth_virtio_dev_init(): VIRTIO_NET_F_STATUS is not supported PMD: eth_virtio_dev_init(): VIRTIO_NET_F_MQ is not supported PMD: virtio_dev_cq_queue_setup(): >> PMD: virtio_dev_queue_setup(): selecting queue: 2 PMD: virtio_dev_queue_setup(): vq_size: 64 nb_desc:0 PMD: virtio_dev_queue_setup(): vring_size: 4612, rounded_vring_size: 8192 PMD: virtio_dev_queue_setup(): vq->vq_ring_mem: 0x76d43000 PMD: virtio_dev_queue_setup(): vq->vq_ring_virt_mem: 0x7fa669743000 PMD: eth_virtio_dev_init(): config->max_virtqueue_pairs=1 PMD: eth_virtio_dev_init(): config->status=0 PMD: eth_virtio_dev_init(): PORT MAC: 00:00:00:00:00:11 PMD: eth_virtio_dev_init(): hw->max_rx_queues=1 hw->max_tx_queues=1 PMD: eth_virtio_dev_init(): port 0 vendorID=0x1af4 deviceID=0x1000 PMD: virtio_dev_vring_start(): >> ... According to git bisect it appears to be that it does not work anymore after the b8f04520ad71 ("virtio: use PCI ioport API") commit. I also tried to run the "Vhost Sample Application" in the host with the test-pmd in the guest, the problem is the same. I am using: QEMU v2.2.1 guest kernel: Linux ubuntu 3.19.0-25-generic Both guest and host use 2MB huge pages The qemu command line is DEVICE_CMD="-chardev socket,id=char2,path=/usr/local/var/run/openvswitch/vhost-user-2 \ -netdev type=vhost-user,id=mynet2,chardev=char2,vhostforce \ -device virtio-net-pci,mac=00:00:00:00:00:11,netdev=mynet2" MEMORY_CMD="-object memory-backend-file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on -numa node,memdev=mem -mem-prealloc" qemu-system-x86_64 ... -cpu host -smp 3 -machine accel=kvm,usb=off $MEMORY_CMD -m 1024 $DEVICE_CMD -monitor stdio Could you check if this happens also to you? Thank you very much.