x86/cpuid: Minor fixups missed from previous work
PATCH 1/1 x86/cpuid: Minor fixups missed from previous work
* Add more feature names to ./xen-cpuid
* Vertically align the magic comments in cpufeatureset.h
---
CC: Jan Beulich <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>
This is a nice-to-have for Xen 4.10. It is very low risk, as the functional changes are restricted to debug utilities only.
--- tools/misc/xen-cpuid.c | 15 ++++++++++----- xen/include/public/arch-x86/cpufeatureset.h | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-)
tools/misc/xen-cpuid.c +10 -5
@@ -95,7 +95,7 @@ static const char *str_7b0[32] = [ 0] = "fsgsbase", [ 1] = "tsc-adj", [ 2] = "sgx", [ 3] = "bmi1", [ 4] = "hle", [ 5] = "avx2", - [ 6] = "REZ", [ 7] = "smep", + [ 6] = "fdp_exn", [ 7] = "smep", [ 8] = "bmi2", [ 9] = "erms", [10] = "invpcid", [11] = "rtm", [12] = "pqm", [13] = "depfpp",
@@ -121,23 +121,28 @@ static const char *str_Da1[32] =static const char *str_7c0[32 ] = { [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , - [2 ] ="REZ" , [3 ] ="pku" , + [2 ] ="umip" , [3 ] ="pku" , [4 ] ="ospke" , [5 ...13 ] ="REZ" , [14 ] ="avx512_vpopcntdq" , - [15 ...31 ] ="REZ" , + [15 ...21 ] ="REZ" , + + [22 ] ="rdpid" , + + [23 ...31 ] ="REZ" , };static const char *str_e7d[32 ] = { [0 ...7 ] ="REZ" , - [8 ] ="itsc" , + [8 ] ="itsc" , [9 ] ="REZ" , + [10 ] ="efro" , - [9 ...31 ] ="REZ" , + [11 ...31 ] ="REZ" , }; static const char *str_e8b[32] =
xen/include/public/arch-x86/cpufeatureset.h +2 -2
@@ -239,8 +239,8 @@ XEN_CPUFEATURE(EFRO, 7*32+10) /* APERF/MPERF Read Only interface */XEN_CPUFEATURE (CLZERO ,8 *32 +0 )/*A CLZERO instruction */ /* Intel-defined CPU features, CPUID level 0x00000007:0.edx, word 9 */ -XEN_CPUFEATURE(AVX512_4VNNIW, 9*32+ 2) /*A AVX512 Neural Network Instructions */ -XEN_CPUFEATURE(AVX512_4FMAPS, 9*32+ 3) /*A AVX512 Multiply Accumulation Single Precision */ +XEN_CPUFEATURE(AVX512_4VNNIW, 9*32+ 2) /*A AVX512 Neural Network Instructions */ +XEN_CPUFEATURE(AVX512_4FMAPS, 9*32+ 3) /*A AVX512 Multiply Accumulation Single Precision */#endif /* XEN_CPUFEATURE */
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 03.11.17 at 18:35, <[email protected]> wrote:
* Add more feature names to ./xen-cpuid
* Vertically align the magic comments incpufeatureset.hSigned-off-by Andrew Cooper <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Wei Liu
Acked-byQuoted 9 lines · Jan Beulich
Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 03.11.17 at 18:35, <[email protected]> wrote:
* Add more feature names to ./xen-cpuid
* Vertically align the magic comments incpufeatureset.hSigned-off-by Andrew Cooper <[email protected]>Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Hi,
Quoted 4 lines · Andrew Cooper
* Add more feature names to ./xen-cpuid
* Vertically align the magic comments incpufeatureset.hSigned-off-by Andrew Cooper <[email protected]>
Quoted 8 lines
---
CC: Jan Beulich <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>This is a nice-to-have for Xen 4.10. It is very low risk, as the functional changes are restricted to debug utilities only.
Cheers,
Quoted 67 lines
--- tools/misc/xen-cpuid.c | 15 ++++++++++----- xen/include/public/arch-x86/cpufeatureset.h | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-)tools/misc/xen-cpuid.c +10
-5@@ -95,7 +95,7 @@ static const char *str_7b0[32] = [ 0] = "fsgsbase", [ 1] = "tsc-adj", [ 2] = "sgx", [ 3] = "bmi1", [ 4] = "hle", [ 5] = "avx2", - [ 6] = "REZ", [ 7] = "smep", + [ 6] = "fdp_exn", [ 7] = "smep", [ 8] = "bmi2", [ 9] = "erms", [10] = "invpcid", [11] = "rtm", [12] = "pqm", [13] = "depfpp",@@ -121,23 +121,28 @@ static const char *str_Da1[32] =static const char *str_7c0[32 ] = { [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , - [2 ] ="REZ" , [3 ] ="pku" , + [2 ] ="umip" , [3 ] ="pku" , [4 ] ="ospke" , [5 ...13 ] ="REZ" , [14 ] ="avx512_vpopcntdq" , - [15 ...31 ] ="REZ" , + [15 ...21 ] ="REZ" , + + [22 ] ="rdpid" , + + [23 ...31 ] ="REZ" , };static const char *str_e7d[32 ] = { [0 ...7 ] ="REZ" , - [8 ] ="itsc" , + [8 ] ="itsc" , [9 ] ="REZ" , + [10 ] ="efro" , - [9 ...31 ] ="REZ" , + [11 ...31 ] ="REZ" , }; static const char *str_e8b[32] =xen/include/public/arch-x86/cpufeatureset.h +2
-2@@ -239,8 +239,8 @@ XEN_CPUFEATURE(EFRO, 7*32+10) /* APERF/MPERF Read Only interface */XEN_CPUFEATURE (CLZERO ,8 *32 +0 )/*A CLZERO instruction */ /* Intel-defined CPU features, CPUID level 0x00000007:0.edx, word 9 */ -XEN_CPUFEATURE(AVX512_4VNNIW, 9*32+ 2) /*A AVX512 Neural Network Instructions */ -XEN_CPUFEATURE(AVX512_4FMAPS, 9*32+ 3) /*A AVX512 Multiply Accumulation Single Precision */ +XEN_CPUFEATURE(AVX512_4VNNIW, 9*32+ 2) /*A AVX512 Neural Network Instructions */ +XEN_CPUFEATURE(AVX512_4FMAPS, 9*32+ 3) /*A AVX512 Multiply Accumulation Single Precision */#endif /* XEN_CPUFEATURE */
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel