x86/spec-ctrl: command line handling adjustments

For one, "no-xen" should not imply "no-eager-fpu", as "eager FPU" mode
is to guard guests, not Xen itself, which is also expressed so by
print_details().

And then opt_ssbd, despite being off by default, should also be cleared
by the "no" and "no-xen" sub-options.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: ac3f9a7214
master date: 2018-07-10 12:22:31 +0200
This commit is contained in:
Jan Beulich committed 2018-07-30 14:17:45 +02:00
1 parent 03ba2724ae
commit 2d69b6d00d
1 file changed
+3 -1
+3 -1
View File
@@ -108,6 +108,8 @@ static int __init parse_spec_ctrl(char *s)
opt_msr_sc_pv = 0;
opt_msr_sc_hvm = 0;
opt_eager_fpu = 0;
disable_common:
opt_rsb_pv = 0;
opt_rsb_hvm = 0;
@@ -115,7 +117,7 @@ static int __init parse_spec_ctrl(char *s)
opt_thunk = THUNK_JMP;
opt_ibrs = 0;
opt_ibpb = 0;
opt_eager_fpu = 0;
opt_ssbd = 0;
}
else if ( val > 0 )
rc = -EINVAL;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.