From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by dpdk.org (Postfix) with ESMTP id E3E585580 for ; Wed, 4 May 2016 18:21:03 +0200 (CEST) Received: by mail-lf0-f66.google.com with SMTP id p64so7165195lfg.0 for ; Wed, 04 May 2016 09:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=E3XDOoJONxtOfT3r9rMQazj8vWy7VlYPFAkmKjPBCX8=; b=u1PTKYSSMVbL4oitS6KmG/zMAtuLOcM22GVXXCYkoYMSobx/i28g1ZQhvq21SZvcQl C5iisRXj3gxAaudhkG3Rn0e4qz0vOkPr/3ejIpTPLqo/m75BHxvxxsBPDEaGo1Z7aAWS yJCY78EvrZ15/X6j2jWHwC3MGmL7zZHLYLxw33tWijv/RWmAmsBBaKWtNHop1/L6rZdI /NDTYOz2uDDCZKD7z1WTI3u7QvhphXHQ6wXVzxu4Y8n5b54od8ze+cIgSXn5JAJrCY31 lrgAJr4OE2eHKy3Kc0DMBP5Fvlk+PeTomPFPuGT32lV4rm+kV8LXRgdXDlCPpRRh31FA hlkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=E3XDOoJONxtOfT3r9rMQazj8vWy7VlYPFAkmKjPBCX8=; b=YVrGT+IGE9z/SPgtlv/83nohzyXz1uJ+rvA3dLSs59dEolfocqwfKWBKN5NS6pIGZB 8lyZmDDZK3/2In0ilyG9KZp+bhoCRYv/bCu6wJeWfnz3gPCYvsgaf76RHHU2u755VDRi nSvtFrfERYkftJ9ezfn+lunWrOkG8SdI0275kuxWxMP1f76Qfj4Wu131lwhdS4xD1ACm Cn7OiT6mO0i00vCGBahChj/Mi0rjpc3qS8c4x+nP8ycZT6dOBOez8nSRxp/OTbHwqdGp IwjsjXjUAgSUpItgNa++Er4x6m2hhwyKfueUJQEoCCCivb07+iXECL6PnOrYzIzwc5nS Sk8w== X-Gm-Message-State: AOPr4FX/niQ7dlzSO0kfULnkhPZuZVbQYw6/wBvlTCH66xH46VQlyk6beDnk6LokKPmGQ7Q4JsEQDtKQdxJ8+g== MIME-Version: 1.0 X-Received: by 10.25.23.86 with SMTP id n83mr4660114lfi.159.1462378863588; Wed, 04 May 2016 09:21:03 -0700 (PDT) Received: by 10.25.15.207 with HTTP; Wed, 4 May 2016 09:21:03 -0700 (PDT) Date: Wed, 4 May 2016 09:21:03 -0700 Message-ID: From: Vincent Li To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Subject: [dpdk-dev] virtio still blindly take over virtio device managed by kernel 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: Wed, 04 May 2016 16:21:04 -0000 Hi, I am running the dpdk git repo which already had commit ac5e1d838dc (virtio: skip error when probing kernel managed device), but in my test, it seems still taking control of the kernel managed virtio device and segmentation fault, here is the example: # ./tools/dpdk_nic_bind.py --status Network devices using DPDK-compatible driver ============================================ 0000:00:07.0 'Virtio network device' drv=igb_uio unused= 0000:00:08.0 'Virtio network device' drv=igb_uio unused= Network devices using kernel driver =================================== 0000:00:03.0 'Virtio network device' if= drv=virtio-pci unused=igb_uio #./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- -i EAL: Detected 4 lcore(s) EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles ! EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd PMD: vtpci_init(): trying with legacy virtio pci. Segmentation fault (core dumped) if I blacklist 0000:00:03.0 from testpmd, testpmd works: # ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -b 0000:00:03.0 -- -i EAL: Detected 4 lcore(s) EAL: Probing VFIO support... EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles ! EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: PCI device 0000:00:07.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd PMD: virtio_read_caps(): no modern virtio pci device found. PMD: vtpci_init(): trying with legacy virtio pci. EAL: PCI device 0000:00:08.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd PMD: virtio_read_caps(): no modern virtio pci device found. PMD: vtpci_init(): trying with legacy virtio pci. Interactive-mode selected Configuring Port 0 (socket 0) rte_eth_dev_config_restore: port 0: MAC address array not supported Port 0: 52:54:00:EA:6E:3E Configuring Port 1 (socket 0) rte_eth_dev_config_restore: port 1: MAC address array not supported Port 1: 52:54:00:24:06:DB Checking link statuses... Port 0 Link Up - speed 10000 Mbps - full-duplex Port 1 Link Up - speed 10000 Mbps - full-duplex Done testpmd>