Re: [PATCH v3 3/3] x86/retpoline: Convert generic specific retpolines to use RETPOLINE_GENERIC

From: Tom Lendacky
Date: Wed Jan 10 2018 - 09:23:39 EST


On 1/10/2018 7:15 AM, Woodhouse, David wrote:
> On Tue, 2018-01-09 at 18:28 -0800, Andi Kleen wrote:
>> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>>
>> X86_FEATURE_RETPOLINE has been renamed to X86_FEATURE_RETPOLINE_GENERIC.
>> Convert the sequences using it.
>
> AMD documentation says they need the RSB fill too, so these should stay
> under X86_FEATURE_RETPOLINE I think.

AMD processors don't fall back to the indirect predictor on an underflow
so this isn't needed on AMD if it is purely for underflow prevention.

Thanks,
Tom

>
>
>
> Amazon Web Services UK Limited. Registered in England and Wales with
> registration number 08650665 and which has its registered office at 60
> Holborn Viaduct, London EC1A 2FD, United Kingdom.