Re: [PATCH] x86/vtd: fix EPT page table sharing check

2020-04-17 Thread Jan Beulich
On 17.04.2020 13:16, Roger Pau Monné wrote: > On Fri, Apr 17, 2020 at 12:57:16PM +0200, Jan Beulich wrote: >> On 17.04.2020 12:26, Roger Pau Monne wrote: >>> --- a/xen/drivers/passthrough/vtd/iommu.c >>> +++ b/xen/drivers/passthrough/vtd/iommu.c >>> @@ -1914,8 +1914,10 @@ static int __init vtd_ept_

Re: [PATCH] x86/vtd: fix EPT page table sharing check

2020-04-17 Thread Roger Pau Monné
On Fri, Apr 17, 2020 at 12:57:16PM +0200, Jan Beulich wrote: > On 17.04.2020 12:26, Roger Pau Monne wrote: > > The EPT page tables can be shared with the IOMMU as long as the page > > sizes supported by EPT are also supported by the IOMMU. > > > > Current code checks that both the IOMMU and EPT su

Re: [PATCH] x86/vtd: fix EPT page table sharing check

2020-04-17 Thread Jan Beulich
On 17.04.2020 12:26, Roger Pau Monne wrote: > The EPT page tables can be shared with the IOMMU as long as the page > sizes supported by EPT are also supported by the IOMMU. > > Current code checks that both the IOMMU and EPT support the same page > sizes, but this is not strictly required, the IOM

[PATCH] x86/vtd: fix EPT page table sharing check

2020-04-17 Thread Roger Pau Monne
The EPT page tables can be shared with the IOMMU as long as the page sizes supported by EPT are also supported by the IOMMU. Current code checks that both the IOMMU and EPT support the same page sizes, but this is not strictly required, the IOMMU supporting more page sizes than EPT is fine and sho