Re: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush

2020-09-11 Thread Oleksandr
Grall ; Stefano Stabellini ; Jun Nakajima ; Kevin Tian Subject: Re: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush On Thu, Sep 10, 2020 at 8:49 PM Durrant, Paul <mailto:pdurr...@amazon.co.uk> wrote: Hi Paul [sorry for the possible format issue] -Or

RE: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush

2020-09-11 Thread Paul Durrant
; Kevin Tian Subject: Re: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush On Thu, Sep 10, 2020 at 8:49 PM Durrant, Paul <mailto:pdurr...@amazon.co.uk> wrote: Hi Paul [sorry for the possible format issue] > -Original Message- > From: Bert

Re: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush

2020-09-10 Thread Oleksandr Tyshchenko
On Thu, Sep 10, 2020 at 8:49 PM Durrant, Paul wrote: Hi Paul [sorry for the possible format issue] > -Original Message- > > From: Bertrand Marquis > > Sent: 10 September 2020 17:46 > > To: Paul Durrant > > Cc: open list:X86 ; Durrant, Paul < > pdurr...@amazon.co.uk>; Jan Beulich > > ;

RE: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush

2020-09-10 Thread Durrant, Paul
> -Original Message- > From: Bertrand Marquis > Sent: 10 September 2020 17:46 > To: Paul Durrant > Cc: open list:X86 ; Durrant, Paul > ; Jan Beulich > ; Andrew Cooper ; Wei Liu > ; Roger Pau Monné > ; George Dunlap ; Ian Jackson > ; Julien Grall ; Stefano Stabellini > ; Jun Nakajima ; K

Re: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush

2020-09-10 Thread Bertrand Marquis
>> diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h >> index 1831dc66b0..13f68dc93d 100644 >> --- a/xen/include/xen/iommu.h >> +++ b/xen/include/xen/iommu.h >> @@ -146,23 +146,23 @@ enum >> #define IOMMU_FLUSHF_modified (1u << _IOMMU_FLUSHF_modified) >> >> int __must_check iommu_ma

Re: [PATCH v6 4/8] iommu: make map and unmap take a page count, similar to flush

2020-09-10 Thread Bertrand Marquis
> On 10 Sep 2020, at 15:50, Paul Durrant wrote: > > From: Paul Durrant > > At the moment iommu_map() and iommu_unmap() take a page order rather than a > count, whereas iommu_iotlb_flush() takes a page count rather than an order. > This patch makes them consistent with each other, opting for a