Re: [PATCH v4 14/17] x86/asm/entry/64: Migrate error and interrupt exit work to C

From: Borislav Petkov
Date: Thu Jul 02 2015 - 12:34:15 EST


On Thu, Jul 02, 2015 at 09:09:23AM -0700, Andy Lutomirski wrote:
> You mean link-time asm optimizations? Turning off frame pointers in
> leaf functions as long as rbp is still preserved might not be so
> terrible either.

Is there a gcc switch for that?

> I'm torn on this one. In principle, you're right, or we could have a
> macro CALL_ENTER_FROM_USER_MODE that does nothing if context tracking
> is off. OTOH, that's also kind of messy.

Yeah, I'm torn too.

If you have something better, cool. Otherwise it is a judgement call for
tip people.

> If we move even more of this stuff into C, then this problem goes
> away. "call enter_from_user_mode" turns into "enter_from_user_mode()"
> or similar.

... and that should be optimized away, I'd guess, if the body's empty.
Something like empty body removal or whatever...

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/