mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 16:44:59 +00:00
x86/bugs: Add retbleed=force
Debug aid, allows running retbleed=force,stuff on non-affected uarchs Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
This commit is contained in:
parent
d82a0345cf
commit
5c9a92dec3
@ -838,6 +838,8 @@ static int __init retbleed_parse_cmdline(char *str)
|
|||||||
retbleed_cmd = RETBLEED_CMD_STUFF;
|
retbleed_cmd = RETBLEED_CMD_STUFF;
|
||||||
} else if (!strcmp(str, "nosmt")) {
|
} else if (!strcmp(str, "nosmt")) {
|
||||||
retbleed_nosmt = true;
|
retbleed_nosmt = true;
|
||||||
|
} else if (!strcmp(str, "force")) {
|
||||||
|
setup_force_cpu_bug(X86_BUG_RETBLEED);
|
||||||
} else {
|
} else {
|
||||||
pr_err("Ignoring unknown retbleed option (%s).", str);
|
pr_err("Ignoring unknown retbleed option (%s).", str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user