On 26/02/15 13:56, Jan Beulich wrote: > --- a/xen/include/asm-x86/hvm/svm/amd-iommu-proto.h > +++ b/xen/include/asm-x86/hvm/svm/amd-iommu-proto.h > @@ -158,12 +158,12 @@ static inline unsigned long region_to_pa > return (PAGE_ALIGN(addr + size) - (addr & PAGE_MASK)) >> PAGE_SHIFT; > } > > -static inline struct page_info* alloc_amd_iommu_pgtable(void) > +static inline struct page_info *alloc_amd_iommu_pgtable(struct domain *d) > { > struct page_info *pg; > void *vaddr; > > - pg = alloc_domheap_page(NULL, 0); > + pg = alloc_domheap_page(d, MEMF_no_owner);
Same comment as with the VT-d side of things. This should be based on the proximity information of the IOMMU, not of the owning domain. ~Andrew > if ( pg == NULL ) > return 0; > vaddr = __map_domain_page(pg); > > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel