[RFC][PATCH 0/2] x86/retpoline: Retpoline on a diet

From: Peter Zijlstra
Date: Thu Feb 18 2021 - 14:04:00 EST


Hi!

The first patch rearranges the implementation and consolidates unused bytes.
The second patch uses INT3 over LFENCE to shrink the retpoline to 15 bytes, by
which 4 can live in a cacheline.

Patches have been boot tested on my IVB.