mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
x86/cpu/intel: Add a nosgx kernel parameter
Add a kernel parameter to disable SGX kernel support and document it. [ bp: Massage. ] Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Sean Christopherson <sean.j.christopherson@intel.com> Acked-by: Jethro Beekman <jethro@fortanix.com> Tested-by: Sean Christopherson <sean.j.christopherson@intel.com> Link: https://lkml.kernel.org/r/20201112220135.165028-9-jarkko@kernel.org
This commit is contained in:
parent
224ab3527f
commit
38853a3039
@ -3368,6 +3368,8 @@
|
||||
|
||||
nosep [BUGS=X86-32] Disables x86 SYSENTER/SYSEXIT support.
|
||||
|
||||
nosgx [X86-64,SGX] Disables Intel SGX kernel support.
|
||||
|
||||
nosmp [SMP] Tells an SMP kernel to act as a UP kernel,
|
||||
and disable the IO APIC. legacy for "maxcpus=0".
|
||||
|
||||
|
@ -99,6 +99,15 @@ static void clear_sgx_caps(void)
|
||||
setup_clear_cpu_cap(X86_FEATURE_SGX_LC);
|
||||
}
|
||||
|
||||
static int __init nosgx(char *str)
|
||||
{
|
||||
clear_sgx_caps();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
early_param("nosgx", nosgx);
|
||||
|
||||
void init_ia32_feat_ctl(struct cpuinfo_x86 *c)
|
||||
{
|
||||
bool tboot = tboot_enabled();
|
||||
|
Loading…
Reference in New Issue
Block a user