]> xenbits.xensource.com Git - xen.git/commitdiff
x86/spec-ctrl: command line handling adjustments
authorJan Beulich <jbeulich@suse.com>
Tue, 10 Jul 2018 10:22:31 +0000 (12:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Jul 2018 10:22:31 +0000 (12:22 +0200)
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>
xen/arch/x86/spec_ctrl.c

index 08e6784c4c8942ceddae8992de1a8bd7b53c863a..73dc7170c7b8166be6dbd75dfe2cbf4c36ae37e0 100644 (file)
@@ -124,6 +124,8 @@ static int __init parse_spec_ctrl(const char *s)
             opt_msr_sc_pv = false;
             opt_msr_sc_hvm = false;
 
+            opt_eager_fpu = 0;
+
         disable_common:
             opt_rsb_pv = false;
             opt_rsb_hvm = false;
@@ -131,7 +133,7 @@ static int __init parse_spec_ctrl(const char *s)
             opt_thunk = THUNK_JMP;
             opt_ibrs = 0;
             opt_ibpb = false;
-            opt_eager_fpu = 0;
+            opt_ssbd = false;
         }
         else if ( val > 0 )
             rc = -EINVAL;