Re: [RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-30 Thread Inki Dae
Hi Russell, 2018년 01월 27일 06:39에 Russell King - ARM Linux 이(가) 쓴 글: > On Fri, Jan 26, 2018 at 02:30:47PM +0100, Marek Szyprowski wrote: >> Hi Russell, >> >> On 2018-01-26 12:32, Russell King - ARM Linux wrote: >>> On Fri, Jan 26, 2018 at 12:14:40PM +0100, Marek Szyprowski wrote: glibc in call

Re: [RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-26 Thread Russell King - ARM Linux
On Fri, Jan 26, 2018 at 02:30:47PM +0100, Marek Szyprowski wrote: > Hi Russell, > > On 2018-01-26 12:32, Russell King - ARM Linux wrote: > >On Fri, Jan 26, 2018 at 12:14:40PM +0100, Marek Szyprowski wrote: > >>glibc in calls cacheflush syscall on the whole textrels section of the > >>relocated bin

Re: [RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-26 Thread Marek Szyprowski
Hi Russell, On 2018-01-26 12:32, Russell King - ARM Linux wrote: On Fri, Jan 26, 2018 at 12:14:40PM +0100, Marek Szyprowski wrote: glibc in calls cacheflush syscall on the whole textrels section of the relocated binaries. However, relocation usually doesn't touch all pages of that section, so n

Re: [RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-26 Thread Russell King - ARM Linux
On Fri, Jan 26, 2018 at 12:14:40PM +0100, Marek Szyprowski wrote: > glibc in calls cacheflush syscall on the whole textrels section of the > relocated binaries. However, relocation usually doesn't touch all pages > of that section, so not all of them are read to memory when calling this > syscall.

[RFC 1/2] arm: cacheflush syscall: process only pages that are in the memory

2018-01-26 Thread Marek Szyprowski
glibc in calls cacheflush syscall on the whole textrels section of the relocated binaries. However, relocation usually doesn't touch all pages of that section, so not all of them are read to memory when calling this syscall. However flush_cache_user_range() function will unconditionally touch all p