With the addition of new mitigation for idle, need to check the availability
of microcode when mds=idle. The fix is to take the check out of the if
statement.
Orabug:
29797118
Signed-off-by: Kanth Ghatraju <kanth.ghatraju@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
return;
}
+ if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) {
+ mds_mitigation = MDS_MITIGATION_VMWERV;
+ return;
+ }
+
ret = cmdline_find_option(boot_command_line, "mds", arg,
sizeof(arg));
if (ret > 0) {
}
if (mds_mitigation == MDS_MITIGATION_FULL) {
- if (!boot_cpu_has(X86_FEATURE_MD_CLEAR))
- mds_mitigation = MDS_MITIGATION_VMWERV;
static_branch_enable(&mds_user_clear);