RE: [PATCH v5 7/8] iommu: remove the share_p2m operation

2020-09-10 Thread Paul Durrant
> -Original Message- > From: Jan Beulich > Sent: 10 September 2020 15:20 > To: Paul Durrant > Cc: xen-devel@lists.xenproject.org; Paul Durrant ; > Andrew Cooper > ; George Dunlap ; Wei > Liu ; Roger Pau > Monné ; Kevin Tian > Subject: Re: [PATCH v5 7/

Re: [PATCH v5 7/8] iommu: remove the share_p2m operation

2020-09-10 Thread Jan Beulich
On 07.09.2020 09:40, Paul Durrant wrote: > --- a/xen/drivers/passthrough/vtd/iommu.c > +++ b/xen/drivers/passthrough/vtd/iommu.c > @@ -318,6 +318,48 @@ static u64 addr_to_dma_page_maddr(struct domain *domain, > u64 addr, int alloc) > return pte_maddr; > } > > +static uint64_t domain_pgd_ma

[PATCH v5 7/8] iommu: remove the share_p2m operation

2020-09-07 Thread Paul Durrant
From: Paul Durrant Sharing of HAP tables is now VT-d specific so the operation is never defined for AMD IOMMU any more. There's also no need to pro-actively set vtd.pgd_maddr when using shared EPT as it is straightforward to simply define a helper function to return the appropriate value in the s