From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: intel-iommu: iova_to_phys: fill in bits from iova when large pte Date: Mon, 4 Nov 2013 18:15:12 -0200 Message-ID: <20131104201512.GA15760@amt.cnet> References: <20131102014511.GA29838@amt.cnet> <20131104170754.GA7317@psuche> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20131104170754.GA7317@psuche> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Greg Edwards Cc: "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , David Woodhouse , "kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: iommu@lists.linux-foundation.org On Mon, Nov 04, 2013 at 10:07:54AM -0700, Greg Edwards wrote: > On Fri, Nov 01, 2013 at 06:45:12PM -0700, Marcelo Tosatti wrote: > > > > intel_iommu_iova_to_phys returns incorrect physical address > > when iova is translated by large pte. > > > > Fill in bits from iova when creating the physical address. > > Marcelo, for what it's worth, this patch alone didn't fix the BUG when > using KVM PCI assignment with huge pages. I still needed the hva > alignment patch as well. > > Greg Yep, still a bugfix though. Good catch, Greg.