From: Alex Williamson Subject: Re: pci passthrough error about insufficient iommu width Date: Wed, 06 Aug 2014 15:31:29 -0600 Message-ID: <1407360689.316.182.camel@ul30vt.home> References: <53E29CA8.6070806@netapp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Nishank Trivedi Return-path: Received: from mx1.redhat.com ([209.132.183.28]:60799 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754384AbaHFVbb (ORCPT ); Wed, 6 Aug 2014 17:31:31 -0400 In-Reply-To: <53E29CA8.6070806@netapp.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2014-08-06 at 14:22 -0700, Nishank Trivedi wrote: > Hi > > I'm trying to do a pci-passthrough of Intel 82599 10GbE card, with guest > having 8G of memory. I see following error - > > intel_iommu_map: iommu width (48) is not sufficient for the mapped > address (fffffffffe001000) > kvm_iommu_map_address:iommu failed to map pfn=45800 > > I checked IOMMU capability register and SAGAW as well as MGAW are 48bits > for both IOMMU. > > # dmesg | grep ecap > dmar: IOMMU 0: reg_base_addr dfff0000 ver 1:0 cap d2078c106f0462 ecap f020fe > dmar: IOMMU 1: reg_base_addr bfff0000 ver 1:0 cap d2078c106f0462 ecap f020fe > > # cat /proc/cpuinfo | grep "address sizes" > address sizes : 46 bits physical, 48 bits virtual > > In DMAR table, I see host address width set to "2D", i.e. 46bit, which > is ok as it is same as physical address size. Any suggestions on what > might be going wrong here? Try vfio-pci instead of pci-assign