From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id AFF0637B0 for ; Tue, 12 Mar 2019 10:54:43 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EBF4030820C9; Tue, 12 Mar 2019 09:54:42 +0000 (UTC) Received: from [10.72.12.17] (ovpn-12-17.pek2.redhat.com [10.72.12.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id B516A60BE0; Tue, 12 Mar 2019 09:54:41 +0000 (UTC) To: Thanneeru Srinivasulu , Bruce Richardson Cc: dev@dpdk.org References: <20190312093826.GA914268@bricha3-MOBL.ger.corp.intel.com> From: Jason Wang Message-ID: Date: Tue, 12 Mar 2019 17:54:39 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Tue, 12 Mar 2019 09:54:43 +0000 (UTC) Subject: Re: [dpdk-dev] Query : Does Binding with vfio-pci is supported inside qemu-kvm guest/vm instance.? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Mar 2019 09:54:44 -0000 On 2019/3/12 下午5:42, Thanneeru Srinivasulu wrote: > Thanks Bruce.. > > On Tue, Mar 12, 2019 at 3:08 PM Bruce Richardson > wrote: >> On Tue, Mar 12, 2019 at 10:57:55AM +0530, Thanneeru Srinivasulu wrote: >>> Hi Everyone. >>> >>> I did attached pice to Guest VM using vfio-pci with qemu command, and then >>> tried binding the pcie bdf with vfio-pci, observing binding failure with >>> vfio-pci. >>> >>> Where as when tryied with igb_uio, everything works fine. >>> >>> Does Binding with vfio-pci is supported inside VM/guest? >>> >> vfio support requires the presence of an IOMMU, and you generally don't >> have an IOMMU available in a VM. >> >> /Bruce Actually, Qemu support vIOMMU + VFIO in guest[1], all you need is to add a intel IOMMU and enabling caching mode. Thanks [1] https://www.lfasiallc.com/wp-content/uploads/2017/11/Device-Assignment-with-Nested-Guests-and-DPDK_Peter-Xu.pdf > >