arch/x86/kernel/cpu/feat_ctl.c

Source file repositories/reference/linux-study-clean/arch/x86/kernel/cpu/feat_ctl.c

File Facts

System
Linux kernel
Corpus path
arch/x86/kernel/cpu/feat_ctl.c
Extension
.c
Size
6663 bytes
Lines
216
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

if (!enable_sgx_kvm) {
			pr_err_once("SGX Launch Control is locked. Disable SGX.\n");
			clear_cpu_cap(c, X86_FEATURE_SGX);
		} else {
			pr_err_once("SGX Launch Control is locked. Support SGX virtualization only.\n");
			clear_cpu_cap(c, X86_FEATURE_SGX_LC);
		}
	}
}

Annotation

Implementation Notes