projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bfa59b
)
x86: "spec-ctrl=no-xen" should also disable branch hardening
author
Jan Beulich
<jbeulich@suse.com>
Thu, 20 Feb 2020 10:37:01 +0000
(11:37 +0100)
committer
Jan Beulich
<jbeulich@suse.com>
Thu, 20 Feb 2020 10:37:01 +0000
(11:37 +0100)
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>
xen/arch/x86/spec_ctrl.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/spec_ctrl.c
b/xen/arch/x86/spec_ctrl.c
index 20f562902b8b78ea66f30f7eac8c4392b284cbcf..aed2c6613a53eda7ea6ba2aed5c45d448cdc6f69 100644
(file)
--- a/
xen/arch/x86/spec_ctrl.c
+++ b/
xen/arch/x86/spec_ctrl.c
@@
-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;