Re: [patch V3 11/11] x86/mm/cpa: Avoid the 4k pages check completely
From: Dave Hansen
Date: Fri Sep 21 2018 - 16:32:15 EST
On 09/17/2018 07:29 AM, Thomas Gleixner wrote:
> + * There used to be a 4k wise evaluation trying really hard to
> + * preserve the large pages, but experimentation has shown, that this
> + * does not help at all. There might be corner cases which would
> + * preserve one large page occasionally, but it's really not worth the
> + * extra code and cycles for the common case.
My only concern with this is that if this goes bad, it will be silently
bad and we'll just have an unnecessarily fractured direct map.
But, writing code to go verify the page tables and make sure they're
sane is a task for another day.
Reviewed-by: Dave Hansen <dave.hansen@xxxxxxxxx>