# Re: \[PATCH v19 04/25\] x86/cpufeatures: Introduce X86\_FEATURE\_CET and setup functions

- From: Yu, Yu-cheng \<hidden\>
- Date: 2021-02-05 16:21:53 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2021/02/6260032
- Thread: https://ratatoskr.run/linux-doc/2021/02/6257763/t.md

```text
On 2/5/2021 5:43 AM, Borislav Petkov wrote:
> On Wed, Feb 03, 2021 at 02:55:26PM -0800, Yu-cheng Yu wrote:
>> @@ -1252,6 +1260,13 @@ static void __init cpu_parse_early_param(void)
>>   	if (cmdline_find_option_bool(boot_command_line, "noxsaves"))
>>   		setup_clear_cpu_cap(X86_FEATURE_XSAVES);
>>   
>> +#ifdef CONFIG_X86_CET
>> +	if (cmdline_find_option_bool(boot_command_line, "no_user_shstk"))
>> +		setup_clear_cpu_cap(X86_FEATURE_SHSTK);
>> +	if (cmdline_find_option_bool(boot_command_line, "no_user_ibt"))
>> +		setup_clear_cpu_cap(X86_FEATURE_IBT);
>> +#endif
>
> Any particular need for the ifdeffery?
>

Right.  There is no need for that.  I will remove it.

--
Yu-cheng
```
