[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/3] x86/retpoline: rename retpoline Kconfig check to include GCC prefix
- To: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Thu, 17 Feb 2022 09:59:52 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UA/k/Mxh1ePla6moqwRTP2hCd5vGqy6eR507Pa1dsr4=; b=FuuPOpgZuw2SCd0QB93XbCrUxtVgKy7xuQMFpDNJkrGzPR4V0HhE+hfuuiCHVvCQa/6f+DDZ0F1HZSu53mX18ySPSXVyNVBAAupLqjHG5Xs1za9/p+XCjbJX78s9As5hyj4bQS+ic+xtT35YBf/9X36M2o0E/01zHtGebMnd1duDBopTQhUy03ElDDaL+5h05owviaTsTyIBAkCiDVKLE30Z04M2F6BHhZK/mewcnMMqTsZjEkq0snmLxN9NARmMeX2Y71cbND+MqDfoW64qidCnbeTms69ATEdK7+LXmsiNOBaoIpm127ht75v8o26v0+wBx+6Gz3EeK/iEbIt5WQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R6O8ADVm8RSaGrbcycxBD7f+hOPB0B+4IElp4e9r8Md362Nnu1lPV4g4t6Qy5iBBygb/UUkTdyjrOBTxM8cxqENuaPzspAtNrM0Hode816Z36nsUPWrSNUgdfl416bAAt/8oOrylfKx1pVfU0icamMu7ghJmV6OPJoAU39UAW8pYW2ZnSpr9hRPTV0WK7NUDMBbfTSUzKXsZ6iOSUcuQts6BGpjkkb/M9dr37p7+8tYnlgVfhIiyMP7vrA0Wd72elDtEh24mrNGqIyX1s5h9+LJ/tRE0HYHkt+aN4QHKvsfJ5hMDERbaNDWGnVopTSf6nOFmbmhvvDgcFxf73z8tsQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Thu, 17 Feb 2022 09:00:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 16.02.2022 17:21, Roger Pau Monne wrote:
> Current retpoline checks apply to GCC only, so make it obvious by
> prefixing the Kconfig option with GCC. Keep the previous option as a
> way to signal generic retpoline support regardless of the underlying
> compiler.
>
> No functional change intended.
>
> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> Changes since v1:
> - Put def_bool before depend on.
Just for the record: A slightly shorter alternative would have been ...
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -32,9 +32,13 @@ config ARCH_DEFCONFIG
> string
> default "arch/x86/configs/x86_64_defconfig"
>
> -config INDIRECT_THUNK
> +config GCC_INDIRECT_THUNK
> def_bool $(cc-option,-mindirect-branch-register)
>
> +config INDIRECT_THUNK
> + def_bool y
> + depends on GCC_INDIRECT_THUNK
config INDIRECT_THUNK
bool
config GCC_INDIRECT_THUNK
def_bool $(cc-option,-mindirect-branch-register)
select INDIRECT_THUNK
A more appropriate thing to use for "depends on" might have been
CC_IS_GCC. With the next patch in mind this would then avoid
potential confusion if e.g. Clang folks decided to (also) support
the gcc style command line options.
Jan
|