Re: [PATCH 2/6] x86/iommu: add common page-table allocator

2020-07-27 Thread Jan Beulich
On 27.07.2020 11:37, Durrant, Paul wrote: From: Andrew Cooper Sent: 24 July 2020 19:24 On 24/07/2020 17:46, Paul Durrant wrote: --- a/xen/drivers/passthrough/x86/iommu.c +++ b/xen/drivers/passthrough/x86/iommu.c @@ -140,11 +140,19 @@ int arch_iommu_domain_init(struct domain *d)

RE: [PATCH 2/6] x86/iommu: add common page-table allocator

2020-07-27 Thread Durrant, Paul
> -Original Message- > From: Andrew Cooper > Sent: 24 July 2020 19:24 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Durrant, Paul ; Jan Beulich ; > Kevin Tian > ; Wei Liu ; Roger Pau Monné > > Subject: RE: [EXTERNAL] [PATCH 2/6] x86/iommu: add common page-table allocator >

Re: [PATCH 2/6] x86/iommu: add common page-table allocator

2020-07-26 Thread Jan Beulich
On 24.07.2020 20:24, Andrew Cooper wrote: > On 24/07/2020 17:46, Paul Durrant wrote: >> --- a/xen/drivers/passthrough/x86/iommu.c >> +++ b/xen/drivers/passthrough/x86/iommu.c >> @@ -140,11 +140,19 @@ int arch_iommu_domain_init(struct domain *d) >> >> spin_lock_init(>arch.mapping_lock); >>

Re: [PATCH 2/6] x86/iommu: add common page-table allocator

2020-07-24 Thread Andrew Cooper
On 24/07/2020 17:46, Paul Durrant wrote: > From: Paul Durrant > > Instead of having separate page table allocation functions in VT-d and AMD > IOMMU code, use a common allocation function in the general x86 code. > Also, rather than walking the page tables and using a tasklet to free them >