From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E7E4A42928 for ; Wed, 12 Apr 2023 17:01:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B005A410F2; Wed, 12 Apr 2023 17:01:41 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 9557D406A2 for ; Wed, 12 Apr 2023 17:01:40 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id o2so11674607plg.4 for ; Wed, 12 Apr 2023 08:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1681311700; x=1683903700; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=WvQLvStZmaY3Y670WnnurP1pTF94drne7YRGo3rD1EI=; b=7yVjZ7ttJHgudTn0m7hsXiT9PaaAlsy3YRTCipfB82NWxoiJQE030c9JfYTc/fEbVK 6YX4CNZrG09B1bGZWHGYEamBaJwu4bHcy0lE1VHIMd0PAkIPJZoyxlFka+VHUBr3k6w6 ef99xNgeFOKxmGE87jjBz6TfGXkxfeefwcT9KKW2a9glGVFl5AssGtUDDZjiAw6T4buj G9zCAPi697K7ajkUUwhbg88cQWrDRjrdfpd9iZPq/DGpbAgIGXaeSUEFBE/hNHOmFtmD VLV1mFo2LEHH3RFj6invYQOE8C3nrRXB29aMpeJmcP0Tc4ks2nnT5YtwyhiL4LqZ/Jjs 8Z+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681311700; x=1683903700; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WvQLvStZmaY3Y670WnnurP1pTF94drne7YRGo3rD1EI=; b=KL6raha47wRR79Rm6shhMmQ9qNU0rR5abjJXZuceYs1lICPTFtoTXH2lOfPmcpP6JC e70Oi7WjJukHywbW0WlwBo/ew6M1/jyA6n3mmvtUg/Hgg1VkzFYmvysrPuQM3930CBjA GTgineb7/ozXVGfRQcYDjcZcM0VpJYQkpTAhjPwLuPGaDoiFWoZf47uR4gsnawYWVqfV uffPMIBjy9ZUGsqqw8NIJZiq2Jjd3E4lWbCcWAAScIuJYbq85jMO79xUype+spD8ct4A o6OaaFCGCLvn4vFBvG8lIDs+3vw6y7xqyGTQRqQTWo2avR2kao+GX35h0FSnRO1Yn0JO t9ug== X-Gm-Message-State: AAQBX9eRbxufLaXUqgE4gXASTruy9tBkW4de58FkdK+b/jZ6lGlwWlVJ KfQC0dcPBRZgVbXe3X9ZcLScbEePzP6LTlS1v4yZL/cU X-Google-Smtp-Source: AKy350aQhk/LrFI+74XHAqSyciTz7jsKLJfK8k11Xd+BGA6HfXHir/DBGTdq23TnKUh37OjEzgUSgA== X-Received: by 2002:a05:6a20:6aa5:b0:eb:7eea:825e with SMTP id bi37-20020a056a206aa500b000eb7eea825emr3647192pzb.9.1681311699455; Wed, 12 Apr 2023 08:01:39 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id v16-20020aa78090000000b00625d84a0194sm11898393pff.107.2023.04.12.08.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 08:01:39 -0700 (PDT) Date: Wed, 12 Apr 2023 08:01:37 -0700 From: Stephen Hemminger To: Yasin CANER Cc: "users@dpdk.org" Subject: Re: Virtio_user as Exception Path insted of rte_kni on virtio driver is possible Message-ID: <20230412080137.366f0dd1@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Fri, 7 Apr 2023 13:49:47 +0000 Yasin CANER wrote: > Hello all, > > I would like to run a DPDK application on virtio driver that is in a Ubuntu-20 VM. > > > 1. Can DPDK-22.11 create a virtio_user on virtio driver? Or is there a another way to create KNI? I could not create VF . > 2. Is there a way to run virtio_user as Exception path via igb_uio instead of VFIO? > 3. Or do i have to run via rte_kni? Virtio has two sides, the host and guest side. Virtio_user has DPDK place the role of host and the kernel device is the guest side. If running in a VM, the usual case is that the virtio device is managed by the kernel (host side) and the DPDK application is using the guest side. > > I try to follow VFIO guide to create VF but it doesnt work. There is no srvio support in virtio driver as expected. > > Best regards. > > This parts not possible to run > > echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov > > echo 2 > /sys/bus/pci/devices/0000:86:00.0/sriov_numvfs SRIOV VF is a host (not guest VM) side feature. So the above lines don't make any sense. > DPDK version 22.11 > Ubuntu 20.04.5 > 5.4.0-146-generic > https://doc.dpdk.org/guides-22.11/howto/virtio_user_as_exception_path.html#virtio-user-as-exception-path > 55. Tun|Tap Poll Mode Driver - Data Plane Development Kit 22.11.1 documentation (dpdk.org) > https://doc.dpdk.org/guides-22.11/linux_gsg/linux_drivers.html#linux-gsg-linux-drivers > https://docs.kernel.org/driver-api/vfio.html > > ethtool -i ens6 > driver: virtio_net > version: 1.0.0 > firmware-version: > expansion-rom-version: > bus-info: 0000:00:06.0 > supports-statistics: yes > supports-test: no > supports-eeprom-access: no > supports-register-dump: no > supports-priv-flags: no > What is kernel log (dmesg) output?