Forgot to comment.
On Fri, Sep 24, 2021 at 11:54:58AM +0200, Jan Beulich wrote:
> --- a/xen/drivers/passthrough/amd/pci_amd_iommu.c
> +++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c
> @@ -238,7 +238,7 @@ int amd_iommu_alloc_root(struct domain *
>
> if ( unlikely(!hd->arch.amd.root_table) )
> {
> - hd->arch.amd.root_table = iommu_alloc_pgtable(d);
> + hd->arch.amd.root_table = iommu_alloc_pgtable(d, 0);
So root tables don't get markers setup...
> if ( !hd->arch.amd.root_table )
> return -ENOMEM;
> }
> --- a/xen/drivers/passthrough/vtd/iommu.c
> +++ b/xen/drivers/passthrough/vtd/iommu.c
> @@ -297,7 +297,7 @@ static uint64_t addr_to_dma_page_maddr(s
> goto out;
>
> pte_maddr = level;
> - if ( !(pg = iommu_alloc_pgtable(domain)) )
> + if ( !(pg = iommu_alloc_pgtable(domain, 0)) )
...likewise here.
Thanks, Roger.