Skip to content
Snippets Groups Projects
Commit c4cd2c0c authored by iliya.saroukha's avatar iliya.saroukha :first_quarter_moon:
Browse files

debug: FEATURE_CONTROL_MSR

parent 8fd27449
Branches
No related tags found
No related merge requests found
......@@ -5,9 +5,12 @@
bool ia32_feature_control_flags(void) {
int msr_value = __rdmsr(IA32_FEATURE_CONTROL_MSR);
DEBUG_FMT("IA32_FEATURE_CONTROL value = %llu\n",
__rdmsr(IA32_FEATURE_CONTROL_MSR));
if (!(msr_value & IA32_FEATURE_CONTROL_LOCK_BIT)) {
DEBUG_FMT("Lock bit is not set in IA32_FEATURE_CONTROL_MSR\n");
__wrmsr(IA32_FEATURE_CONTROL_MSR,
IA32_FEATURE_CONTROL_LOCK_BIT |
IA32_FEATURE_CONTROL_VMXON_OUTSIDE_SMX,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment