From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4EE25A04B1 for ; Tue, 8 Sep 2020 21:14:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0986E4C99; Tue, 8 Sep 2020 21:14:55 +0200 (CEST) Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) by dpdk.org (Postfix) with ESMTP id 63796255 for ; Tue, 8 Sep 2020 21:14:54 +0200 (CEST) Received: by mail-ed1-f51.google.com with SMTP id t16so190763edw.7 for ; Tue, 08 Sep 2020 12:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BnFCm+ZKXrNBLqup5By39IWR1KHBeshoGz5rnu8fa4g=; b=odJaz8GhZ1dIEABNRK0KVT9JhASEZLtJpdOT06XUoE1j4yrNfWSVbGiizyOcWi3p3A ZlBo7NIKy0aO+RxdVB5IeoMAR8B41cqqONkUtxz4a919HBtOuKcjP3JhLXDUj+90VJlK wl1O0LJ79aVvs2VWdqqPgQik+y1s90baWdvHZ/qrwyhycAkKy1hpw4aHnQNeMQjhdmuo jLCAXfxciPpsLVjiOGI+1yIh5I/HRQ0NWrwOH4ZR+LulYzqZQWWzlyOTN9PjEbfCSXEa S7CfTRZ0T6TbOt12SRLLMQ+iPQ+3XKbhXE865F0PEqyThGypDNhqL5YUTpbf3NrOYPNQ CJEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BnFCm+ZKXrNBLqup5By39IWR1KHBeshoGz5rnu8fa4g=; b=PgRNB9AqpyvIUkIjWOuBfyfujmjNNxdtat5O55mjC06WQivytaqzRJbhFlWbW0lQfu VisoByf53tiC15e+eScM8/IiwHP3CwKkAl6/Z8P4+cfeD2rPClGU5M2pv1e3n9Qe8CGv 2M9JerHHtB3Qa86KSuAzufNT0CFnLK38l6OP2JPgZmscOazxf5ZCb4wR1Q7w2L3/+CBq 8IBoydvOTYbsm+aYAFYnv7hJaaDPeLiOQkl9CzagZGOmoQOpB7VBNbjNhTklwa3JCRCp REFVICuBpAm9sdcrY57soll5ysIMM5jQAurZk++ngw1dRLmjddheUI5AZhCSjDx0qmuY 2Syw== X-Gm-Message-State: AOAM531erbbnteoI3T90+BGL4V2rXZNvWkay3mk8Q77f4AGlgYu7jR6S TEmsLqLXkkjqTG89VRexDtnMbg4K7W+aRBqjWySVzvh18vKn9g== X-Google-Smtp-Source: ABdhPJwe+9oHzF1xjBej6Vn0jbkIr+MwU8iuYqcsrM2A24qReErxcHiO25EVXTc0QSRz5JgIPV6b7LOMLFZV6JR+pCE= X-Received: by 2002:a50:ce09:: with SMTP id y9mr481373edi.91.1599592493836; Tue, 08 Sep 2020 12:14:53 -0700 (PDT) MIME-Version: 1.0 From: Steve Roberts Date: Tue, 8 Sep 2020 14:14:42 -0500 Message-ID: To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] DPDK EAL Init failing in VM guest UIO_RESOURCE_LIST X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" In pursuit of the vhost example: https://doc.dpdk.org/guides/sample_app_ug/vhost.html#parameters I'm trying to ensure that DPDK is installed correctly and is working withing a guest VM, but it appears that in the VM the EAL is failing to initialize in dpdk-helloworld. Unlike the example, my VM does not yet have a vhost-user (perhaps the problem). [root@guestA dpdk]# hugeadm --pool-list Size Minimum Current Maximum Default 2097152 10 10 10 * 1073741824 0 0 0 [root@guestA dpdk]# ./dpdk-helloworld -l 0-1 -n 2 EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: UIO_RESOURCE_LIST tailq is already registered PANIC in tailqinitfn_rte_uio_tailq(): Cannot initialize tailq: UIO_RESOURCE_LIST The host is running OVS with an ovs-bridge that is passed to the guest VM as a network; this is for NIC access. I'd like to be able to ensure that helloworld works so that I can expand this scenario were the guest has a NIC port connected to a OVS-dpdk-vhost port, but I'm not sure why error is [root@cn03 ~]# vi /tmp/ovs-network.xml ovs-network virt-install \ --virt-type=kvm \ --name guestA \ --ram 8192 \ --vcpus 4 \ --os-variant generic \ --os-type generic \ --network network:ovs-network \ --graphics vnc,listen=0.0.0.0 \ --noautoconsole \ --console pty,target_type=serial \ --disk path=/var/lib/libvirt/images/guestA.qcow2,size=40,device=disk,bus=virtio,cache=none I hazard a guess that the message meant at least one uio_pci_generic driver might need to be bound for EAL to initialize. However, following the guidance of the vhost example, that was thwarted. modprobe uio_pci_generic $RTE_SDK/usertools/dpdk-devbind.py -b uio_pci_generic 0000:00:04.0 [root@guestA dpdk]# lspci 00:01.0 Ethernet controller: Red Hat, Inc. Virtio network device 00:02.0 USB controller: Red Hat, Inc. QEMU XHCI Host Controller (rev 01) 00:03.0 SCSI storage controller: Red Hat, Inc. Virtio SCSI 00:04.0 Communication controller: Red Hat, Inc. Virtio console 00:05.0 SCSI storage controller: Red Hat, Inc. Virtio block device 00:06.0 Unclassified device [00ff]: Red Hat, Inc. Virtio memory balloon 00:07.0 VGA compatible controller: Device 1234:1111 (rev 02) [root@guestA dpdk]# dpdk-devbind.py -b uio_pci_generic 00:04.0 for d in dev_list: File "/fomshare/home/robers/dpdk-stable-19.11.3/install/bin/dpdk-devbind.py", line 352, in dev_id_from_dev_name "Please specify device in \"bus:slot.func\" format" % dev_name) ValueError: Unknown device: 00:04.0. Please specify device in "bus:slot.func" format Any insight appreciated. version: dpdk-stable-19.11.3 os: RHEL 8.2 guest kernel: Linux guestA.localdomain 4.18.0-193.el8 host kernel: Linux cn03 4.18.0-147.el8