Re: [PATCH UPDATE] x86: ignore spurious faults

Jeremy Fitzhardinge
2008-01-25T15:54:36Z

Ingo Molnar wrote:
> thanks, applied.
>
> it would be nice to expose this ability of the architecture to the core
> Linux kernel mprotect code as well, and let it skip on a TLB flush when
> doing a RO->RW transition.

The usermode fault handler already effectively does this; this patch
just does it for kernel mode as well. I don't know if mprotect takes
advantage of this.

> It could speed up valgrind and the other
> mprotect() users i guess? [and UML too perhaps]
>

Not valgrind (it doesn't rely on mmap protections), but electric fence
perhaps.

J