[xen staging] x86/spec-ctrl: Yet more fixes for xpti= parsing
Author: Andrew Cooper <[hidden email]>
AuthorDate: Thu Aug 9 17:22:17 2018 +0100
Commit: Andrew Cooper <[hidden email]>
CommitDate: Fri Aug 10 14:02:26 2018 +0100
x86/spec-ctrl: Yet more fixes for xpti= parsing
As it currently stands, 'xpti=dom0' is indistinguishable from the default
value, which means it will be overridden by ARCH_CAPABILITIES_RDCL_NO on fixed
Switch opt_xpti to use -1 as a default like all our other related options, and
clobber it as soon as we have a string to parse.
In addition, 'xpti' alone should be interpreted in its positive boolean form,
rather than resulting in a parse error.
(XEN) parameter "xpti" has invalid value "", rc=-22!