Re: [PATCH v7 2/8] x86/flush_tlb: try flush_tlb_single one by onein flush_tlb_range

From: Alex Shi
Date: Thu May 24 2012 - 22:45:21 EST


>

> Assuming 'end' is not inclusive (you didn't clarify that),
>
> if (start != TLB_FLUSH_ALL && (end - start) <= PAGE_SIZE) {
>
> (and only if 'start' is guaranteed to be page aligned).
>
>> + args->op.cmd = MMUEXT_INVLPG_MULTI;
>> args->op.arg1.linear_addr = start;
>> + }
>>
>> So, above it correct code for xen?
>> As to the xen optimisation of flush range, it is may better to be done
>> in a separate patch.
>
> Agreed.
>
> Jan
>


Thanks for comments.

this the updated patch according to your suggestion.

-----