Re: [Xen-devel] [PATCH] xen/arm: fix affected memory range by dcache clean functions

2017-03-04 Thread Julien Grall
Hi Stefano, On 03/03/2017 01:15 AM, Stefano Stabellini wrote: clean_dcache_va_range and clean_and_invalidate_dcache_va_range don't calculate the range correctly when "end" is not cacheline aligned. As a result, the last cacheline is not skipped. Fix the issue by aligning the start address to the

Re: [Xen-devel] [PATCH] xen/arm: fix affected memory range by dcache clean functions

2017-03-02 Thread Edgar E. Iglesias
On Thu, Mar 02, 2017 at 05:15:26PM -0800, Stefano Stabellini wrote: > clean_dcache_va_range and clean_and_invalidate_dcache_va_range don't > calculate the range correctly when "end" is not cacheline aligned. As a > result, the last cacheline is not skipped. Fix the issue by aligning the > start add

[Xen-devel] [PATCH] xen/arm: fix affected memory range by dcache clean functions

2017-03-02 Thread Stefano Stabellini
clean_dcache_va_range and clean_and_invalidate_dcache_va_range don't calculate the range correctly when "end" is not cacheline aligned. As a result, the last cacheline is not skipped. Fix the issue by aligning the start address to the cacheline size. In addition, make the code simpler and faster i