mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
x86: "spec-ctrl=no-xen" should also disable branch hardening
This is controlling Xen behavior alone, after all. Reported-by: Jin Nan Wang <jnwang@suse.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
1bfa59ba3b
commit
e6ca7afcf2
1 file changed
+1
-2
@@ -98,8 +98,6 @@ static int __init parse_spec_ctrl(const char *s)
|
||||
if ( opt_pv_l1tf_domu < 0 )
|
||||
opt_pv_l1tf_domu = 0;
|
||||
|
||||
opt_branch_harden = false;
|
||||
|
||||
if ( opt_tsx == -1 )
|
||||
opt_tsx = -3;
|
||||
|
||||
@@ -114,6 +112,7 @@ static int __init parse_spec_ctrl(const char *s)
|
||||
opt_ibpb = false;
|
||||
opt_ssbd = false;
|
||||
opt_l1d_flush = 0;
|
||||
opt_branch_harden = false;
|
||||
}
|
||||
else if ( val > 0 )
|
||||
rc = -EINVAL;
|
||||
|
||||