Re: Crash on kvm_iommu_map_pages

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joerg Roedel
Date: Monday, November 1, 2010 - 7:35 am

On Mon, Nov 01, 2010 at 03:22:15PM +0100, Jan Kiszka wrote:

Hmm, no. This was only a guess. The VTD_PAGE_MASK does not mask out the
bits 52-63 of the pte. According to the VT-d spec it is allowed to set
these bits, some are marked as AVL and some have special meanings. If a
pte has one of these bits set the phys_addr calculated will be wrong and
the virt_addr calculated from it too (probably non-canonical, leading to
the GPF). 

Probably masking out these bits in dma_pte_addr helps. 

	Joerg

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Crash on kvm_iommu_map_pages, Jan Kiszka, (Mon Nov 1, 5:57 am)
Re: Crash on kvm_iommu_map_pages, Roedel, Joerg, (Mon Nov 1, 6:21 am)
Re: Crash on kvm_iommu_map_pages, Jan Kiszka, (Mon Nov 1, 6:25 am)
Re: Crash on kvm_iommu_map_pages, Roedel, Joerg, (Mon Nov 1, 6:53 am)
Re: Crash on kvm_iommu_map_pages, Jan Kiszka, (Mon Nov 1, 7:22 am)
Re: Crash on kvm_iommu_map_pages, Joerg Roedel, (Mon Nov 1, 7:35 am)
Re: Crash on kvm_iommu_map_pages, Jan Kiszka, (Mon Nov 1, 8:29 am)
Re: Crash on kvm_iommu_map_pages, Jan Kiszka, (Mon Nov 1, 9:37 am)