x86/retpoline: split retpoline compiler support into separate option
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 18 Feb 2022 14:34:14 +0000 (15:34 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 21 Feb 2022 18:17:56 +0000 (18:17 +0000)
commite245bc154300b5d0367b64e8b937c9d1da508ad3
tree3dc92e6a3f66c1e4fa8794c0f414467522636ee3
parent32c91e445d9fd3b079fa7fcccf900e866acbfe72
x86/retpoline: split retpoline compiler support into separate option

Keep the previous option as a way to signal generic retpoline support
regardless of the underlying compiler, while introducing a new
CC_HAS_INDIRECT_THUNK that signals whether the underlying compiler
supports retpoline.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/Kconfig
xen/arch/x86/arch.mk