Grall' ; 'Stefano
> Stabellini'
> ; 'Wei Liu'
> Subject: Re: [PATCH v5 6/8] common/grant_table: batch flush I/O TLB
>
> On 10.09.2020 16:17, Paul Durrant wrote:
> >> From: Jan Beulich
> >> Sent: 10 September 2020 14:49
> >>
>
On 10.09.2020 16:17, Paul Durrant wrote:
>> From: Jan Beulich
>> Sent: 10 September 2020 14:49
>>
>> On 07.09.2020 09:40, Paul Durrant wrote:
>>> --- a/xen/common/grant_table.c
>>> +++ b/xen/common/grant_table.c
>>> @@ -241,7 +241,13 @@ struct gnttab_unmap_common {
>>> grant_ref_t ref;
>>> }
ubject: Re: [PATCH v5 6/8] common/grant_table: batch flush I/O TLB
>
> On 07.09.2020 09:40, Paul Durrant wrote:
> > --- a/xen/common/grant_table.c
> > +++ b/xen/common/grant_table.c
> > @@ -241,7 +241,13 @@ struct gnttab_unmap_common {
> > grant_ref_t ref;
> >
On 07.09.2020 09:40, Paul Durrant wrote:
> --- a/xen/common/grant_table.c
> +++ b/xen/common/grant_table.c
> @@ -241,7 +241,13 @@ struct gnttab_unmap_common {
> grant_ref_t ref;
> };
>
> -/* Number of unmap operations that are done between each tlb flush */
> +/* Number of map operations th
From: Paul Durrant
This patch avoids calling iommu_iotlb_flush() for each individual GNTTABOP and
instead calls iommu_iotlb_flush_all() at the end of a batch. This should mean
non-singleton map/unmap operations perform better.
NOTE: A batch is the number of operations done before a pre-emption c