[PATCH 0/2] x86/entry: Trade cycles

From: Peter Zijlstra
Date: Mon Nov 20 2023 - 09:38:07 EST


Hi,

Two little patches that trade a little performance. First patch optimizes
(although I couldn't get definite numbers showing it makes a difference) the
return to user path by avoiding some PTI specifics in the generic path.

Second patch then steals some of the won cycles by making a debug check
unconditional.

This came forth from a discussion with amluto who lamented we only had the
debug check conditional on DEBUG_ENTRY.