Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSR_IA32_FEATURE_CONTROL lock bit is set in kernel version 5.x #34

Open
purplewall1206 opened this issue Apr 12, 2022 · 0 comments
Open

Comments

@purplewall1206
Copy link

MSR_IA32_FEATURE_CONTROL.lock[0bit] = 1 is set in kernel version 5.x by default.

which means no modification to MSRs is allowed until the system reboot.

the code in ksm.c is invalid anymore.

// ksm.c    int __ksm_init_cpu(struct ksm *k)

feat_ctl = __readmsr(MSR_IA32_FEATURE_CONTROL);
	if ((feat_ctl & required_feat_bits) != required_feat_bits) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant