Re: [patch V181 35/54] x86/entry: Align entry text section to PMD boundary

From: Josh Poimboeuf
Date: Thu May 17 2018 - 11:01:28 EST


On Wed, Dec 20, 2017 at 10:35:38PM +0100, Thomas Gleixner wrote:
> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>
> The (irq)entry text must be visible in the user space page tables. To allow
> simple PMD based sharing, make the entry text PMD aligned.
>
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>

With my config, this patch adds 2.5M (+~25%) to the kernel text size.
Is there a more granular way to achieve this?

--
Josh