[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2] x86/cpuid: Extend the cpuid= option to support all named features



On 05.09.2019 21:49, Andrew Cooper wrote:
> For gen-cpuid.py, fix a comment describing self.names, and generate the
> reverse mapping in self.values.  Write out INIT_FEATURE_NAMES which maps a
> string name to a bit position.
> 
> For parse_cpuid(), use cmdline_strcmp() and perform a binary search over
> INIT_FEATURE_NAMES.  A tweak to cmdline_strcmp() is needed to break at equals
> signs as well.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> ---
> CC: Jan Beulich <JBeulich@xxxxxxxx>
> CC: Wei Liu <wl@xxxxxxx>
> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> 
> v2:
>  * Rebase over cmdline_strcmp()
> ---
>  xen/arch/x86/cpuid.c   | 75 
> +++++++++++++++++++++++++++++++-------------------
>  xen/common/kernel.c    |  6 ++--
>  xen/include/xen/lib.h  |  4 +--
>  xen/tools/gen-cpuid.py | 22 +++++++++++++--
>  4 files changed, 71 insertions(+), 36 deletions(-)

I've noticed this only now: This change would have wanted to be
accompanied by an adjustment to the command line doc.

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.