> Then just make sure X86_FEATURE_RETPOLINE_AMD disables X86_FEATURE_RETPOLINE. > > That is both simpler an dsmaller, no?
Yes that works, and is clearly better/simpler. Tested-by: Andi Kleen <a...@linux.intel.com> Thomas, I assume you will fix it up, or let me know if I should send another patch. -Andi