x86: silence false log messages for plain "xpti" / "pv-l1tf"
PATCH 1/1 x86: silence false log messages for plain "xpti" / "pv-l1tf"
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".
---
Split off from "x86: fix "xpti=" and "pv-l1tf=" yet again".
xen/arch/x86/spec_ctrl.c +2 -2
@@ -257,7 +257,7 @@ static __init int parse_pv_l1tf(const chelse 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 charelse 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 ; }
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Jan Beulich
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 <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel