]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86: silence false log messages for plain "xpti" / "pv-l1tf"
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2018 15:12:14 +0000 (17:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Sep 2018 15:12:14 +0000 (17:12 +0200)
While commit 2a3b34ec47 ("x86/spec-ctrl: Yet more fixes for xpti=
parsing")  claimed to have got rid of the 'parameter "xpti" has invalid
value "", rc=-22!' log message for "xpti" alone on the command line,
this wasn't the case (the option took effect nevertheless).

Fix this there as well as for plain "pv-l1tf".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/spec_ctrl.c

index f28a98b2f53228c5abce35a462f937e5c75633a5..a67353f766c454b4c87aff41e7f7835aad5b6d71 100644 (file)
@@ -257,7 +257,7 @@ static __init int parse_pv_l1tf(const char *s)
             else if ( (val = parse_boolean("domu", s, ss)) >= 0 )
                 opt_pv_l1tf = ((opt_pv_l1tf & ~OPT_PV_L1TF_DOMU) |
                                (val ? OPT_PV_L1TF_DOMU : 0));
-            else
+            else if ( *s )
                 rc = -EINVAL;
             break;
         }
@@ -715,7 +715,7 @@ static __init int parse_xpti(const char *s)
             else if ( (val = parse_boolean("domu", s, ss)) >= 0 )
                 opt_xpti = (opt_xpti & ~OPT_XPTI_DOMU) |
                            (val ? OPT_XPTI_DOMU : 0);
-            else
+            else if ( *s )
                 rc = -EINVAL;
             break;
         }