x86/cpuid: Enable new SSE/AVX/AVX512 cpu features
PATCH 1/1 x86/cpuid: Enable new SSE/AVX/AVX512 cpu features
Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features need expose to guest.wq
The bit definition:
CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
CPUID.(EAX=7,ECX=0):ECX[bit 11] AVX512VNNI
CPUID.(EAX=7,ECX=0):ECX[bit 12] AVX512_BITALG
The release document ref below link:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf
--- docs/man/xl.cfg.pod.5.in | 3 ++- tools/libxl/libxl_cpuid.c | 6 ++++++ tools/misc/xen-cpuid.c | 13 +++++++------ xen/include/public/arch-x86/cpufeatureset.h | 6 ++++++ xen/tools/gen-cpuid.py | 3 ++- 5 files changed, 23 insertions(+), 8 deletions(-)
docs/man/xl.cfg.pod.5.in +2 -1
@@ -1731,7 +1731,8 @@ perfctr_core perfctr_nb pge pku popcnt pse pse36 psn rdrand rdseed rdtscp rtm sha skinit smap smep smx ss sse sse2 sse3 sse4.1 sse4.2 sse4_1 sse4_2 sse4a ssse3 svm svm_decode svm_lbrv svm_npt svm_nrips svm_pausefilt svm_tscrate svm_vmcbclean syscall sysenter tbm tm tm2 topoext tsc tsc-deadline tsc_adjust -umip vme vmx wdt x2apic xop xsave xtpr +umip vme vmx wdt x2apic xop xsave xtpr avx512_vbmi2 gfni vaes vpclmulqdq +avx512_vnni avx512_bitalg The xend syntax is a list of values in the form of
tools/libxl/libxl_cpuid.c +6 -0
@@ -199,6 +199,12 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) {"umip", 0x00000007, 0, CPUID_REG_ECX, 2, 1}, {"pku", 0x00000007, 0, CPUID_REG_ECX, 3, 1}, {"ospke", 0x00000007, 0, CPUID_REG_ECX, 4, 1}, + {"avx512_vbmi2", 0x00000007, 0, CPUID_REG_ECX, 6, 1}, + {"gfni", 0x00000007, 0, CPUID_REG_ECX, 8, 1}, + {"vaes", 0x00000007, 0, CPUID_REG_ECX, 9, 1}, + {"vpclmulqdq", 0x00000007, 0, CPUID_REG_ECX, 10, 1}, + {"avx512_vnni", 0x00000007, 0, CPUID_REG_ECX, 11, 1}, + {"avx512_bitalg",0x00000007, 0, CPUID_REG_ECX, 12, 1}, {"avx512-4vnniw",0x00000007, 0, CPUID_REG_EDX, 2, 1}, {"avx512-4fmaps",0x00000007, 0, CPUID_REG_EDX, 3, 1},
tools/misc/xen-cpuid.c +7 -6
@@ -120,12 +120,13 @@ static const char *str_Da1[32] =static const char *str_7c0[32 ] = { - [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , - [2 ] ="REZ" , [3 ] ="pku" , - [4 ] ="ospke" , - - [5 ...13 ] ="REZ" , - + [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , + [2 ] ="REZ" , [3 ] ="pku" , + [4 ] ="ospke" , [5 ] ="REZ" , + [6 ] ="avx512_vbmi2" , [7 ] ="REZ" , + [8 ] ="gfni" , [9 ] ="vaes" , + [10 ] ="vpclmulqdq" , [11 ] ="avx512_vnni" , + [12 ] ="avx512_bitalg" ,[13 ] ="REZ" , [14 ] ="avx512_vpopcntdq" , [15 ...31 ] ="REZ" ,
xen/include/public/arch-x86/cpufeatureset.h +6 -0
@@ -228,6 +228,12 @@ XEN_CPUFEATURE(AVX512VBMI, 6*32+ 1) /*A AVX-512 Vector Byte Manipulation Ins XEN_CPUFEATURE(UMIP, 6*32+ 2) /*S User Mode Instruction Prevention */ XEN_CPUFEATURE(PKU, 6*32+ 3) /*H Protection Keys for Userspace */ XEN_CPUFEATURE(OSPKE, 6*32+ 4) /*! OS Protection Keys Enable */ +XEN_CPUFEATURE(AVX512_VBMI2, 6*32+ 6) /*A addition AVX-512 VBMI Instructions */ +XEN_CPUFEATURE(GFNI, 6*32+ 8) /*A Galois Field New Instructions */ +XEN_CPUFEATURE(VAES, 6*32+ 9) /*A Vector AES instructions */ +XEN_CPUFEATURE(VPCLMULQDQ, 6*32+ 10) /*A vector PCLMULQDQ instructions */ +XEN_CPUFEATURE(AVX512_VNNI, 6*32+ 11) /*A Vector Neural Network Instructions */ +XEN_CPUFEATURE(AVX512_BITALG, 6*32+ 12) /*A support for VPOPCNT[B,W] and VPSHUFBITQMB*/ XEN_CPUFEATURE(AVX512_VPOPCNTDQ, 6*32+14) /*A POPCNT for vectors of DW/QW */XEN_CPUFEATURE (RDPID ,6 *32 +22 )/*A RDPID instruction */
xen/tools/gen-cpuid.py +2 -1
@@ -255,7 +255,8 @@ def crunch_numbers(state): # top of AVX512F AVX512F: [AVX512DQ, AVX512IFMA, AVX512PF, AVX512ER, AVX512CD, AVX512BW, AVX512VL, AVX512VBMI, AVX512_4VNNIW, - AVX512_4FMAPS, AVX512_VPOPCNTDQ], + AVX512_4FMAPS, AVX512_VPOPCNTDQ, AVX512_VBMI2, + AVX512_VNNI, AVX512_BITALG], } deep_features = tuple(sorted(deps.keys()))
Signature · 7 lines
1.9.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 3 lines · Yang Zhong
Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features need expose to guest.wq
s/wq//
Quoted 9 lines
The bit definition:
CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
CPUID.(EAX=7,ECX=0):ECX[bit 11] AVX512VNNI
CPUID.(EAX=7,ECX=0):ECX[bit 12]AVX512_BITALG
Quoted 3 lines
The release document ref below link:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf
Ah! Thank you!
Quoted 104 lines
Signed-off-by Yang Zhong <[email protected]>--- docs/man/xl.cfg.pod.5.in | 3 ++- tools/libxl/libxl_cpuid.c | 6 ++++++ tools/misc/xen-cpuid.c | 13 +++++++------ xen/include/public/arch-x86/cpufeatureset.h | 6 ++++++ xen/tools/gen-cpuid.py | 3 ++- 5 files changed, 23 insertions(+), 8 deletions(-)docs/man/xl.cfg.pod.5.in +2
-1@@ -1731,7 +1731,8 @@ perfctr_core perfctr_nb pge pku popcnt pse pse36 psn rdrand rdseed rdtscp rtm sha skinit smap smep smx ss sse sse2 sse3 sse4.1 sse4.2 sse4_1 sse4_2 sse4a ssse3 svm svm_decode svm_lbrv svm_npt svm_nrips svm_pausefilt svm_tscrate svm_vmcbclean syscall sysenter tbm tm tm2 topoext tsc tsc-deadline tsc_adjust -umip vme vmx wdt x2apic xop xsave xtpr +umip vme vmx wdt x2apic xop xsave xtpr avx512_vbmi2 gfni vaes vpclmulqdq +avx512_vnni avx512_bitalg The xend syntax is a list of values in the form oftools/libxl/libxl_cpuid.c +6
-0@@ -199,6 +199,12 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) {"umip", 0x00000007, 0, CPUID_REG_ECX, 2, 1}, {"pku", 0x00000007, 0, CPUID_REG_ECX, 3, 1}, {"ospke", 0x00000007, 0, CPUID_REG_ECX, 4, 1}, + {"avx512_vbmi2", 0x00000007, 0, CPUID_REG_ECX, 6, 1}, + {"gfni", 0x00000007, 0, CPUID_REG_ECX, 8, 1}, + {"vaes", 0x00000007, 0, CPUID_REG_ECX, 9, 1}, + {"vpclmulqdq", 0x00000007, 0, CPUID_REG_ECX, 10, 1}, + {"avx512_vnni", 0x00000007, 0, CPUID_REG_ECX, 11, 1}, + {"avx512_bitalg",0x00000007, 0, CPUID_REG_ECX, 12, 1}, {"avx512-4vnniw",0x00000007, 0, CPUID_REG_EDX, 2, 1}, {"avx512-4fmaps",0x00000007, 0, CPUID_REG_EDX, 3, 1},tools/misc/xen-cpuid.c +7
-6@@ -120,12 +120,13 @@ static const char *str_Da1[32] =static const char *str_7c0[32 ] = { - [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , - [2 ] ="REZ" , [3 ] ="pku" , - [4 ] ="ospke" , - - [5 ...13 ] ="REZ" , - + [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , + [2 ] ="REZ" , [3 ] ="pku" , + [4 ] ="ospke" , [5 ] ="REZ" , + [6 ] ="avx512_vbmi2" , [7 ] ="REZ" , + [8 ] ="gfni" , [9 ] ="vaes" , + [10 ] ="vpclmulqdq" , [11 ] ="avx512_vnni" , + [12 ] ="avx512_bitalg" ,[13 ] ="REZ" , [14 ] ="avx512_vpopcntdq" , [15 ...31 ] ="REZ" ,xen/include/public/arch-x86/cpufeatureset.h +6
-0@@ -228,6 +228,12 @@ XEN_CPUFEATURE(AVX512VBMI, 6*32+ 1) /*A AVX-512 Vector Byte Manipulation Ins XEN_CPUFEATURE(UMIP, 6*32+ 2) /*S User Mode Instruction Prevention */ XEN_CPUFEATURE(PKU, 6*32+ 3) /*H Protection Keys for Userspace */ XEN_CPUFEATURE(OSPKE, 6*32+ 4) /*! OS Protection Keys Enable */ +XEN_CPUFEATURE(AVX512_VBMI2, 6*32+ 6) /*A addition AVX-512 VBMI Instructions */ +XEN_CPUFEATURE(GFNI, 6*32+ 8) /*A Galois Field New Instructions */ +XEN_CPUFEATURE(VAES, 6*32+ 9) /*A Vector AES instructions */ +XEN_CPUFEATURE(VPCLMULQDQ, 6*32+ 10) /*A vector PCLMULQDQ instructions */ +XEN_CPUFEATURE(AVX512_VNNI, 6*32+ 11) /*A Vector Neural Network Instructions */ +XEN_CPUFEATURE(AVX512_BITALG, 6*32+ 12) /*A support for VPOPCNT[B,W] and VPSHUFBITQMB*/ XEN_CPUFEATURE(AVX512_VPOPCNTDQ, 6*32+14) /*A POPCNT for vectors of DW/QW */XEN_CPUFEATURE (RDPID ,6 *32 +22 )/*A RDPID instruction */ xen/tools/gen-cpuid.py +2
-1@@ -255,7 +255,8 @@ def crunch_numbers(state): # top of AVX512F AVX512F: [AVX512DQ, AVX512IFMA, AVX512PF, AVX512ER, AVX512CD, AVX512BW, AVX512VL, AVX512VBMI, AVX512_4VNNIW, - AVX512_4FMAPS, AVX512_VPOPCNTDQ], + AVX512_4FMAPS, AVX512_VPOPCNTDQ, AVX512_VBMI2, + AVX512_VNNI, AVX512_BITALG], } deep_features = tuple(sorted(deps.keys()))Signature · 7 lines
1.9.1 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Yang Zhong
Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features need expose to guest.wq
s/wq//
Hello Konrad,
Thanks for reviewing my patch, i will remove this .wq in next version,thanks!
Regards,
Yang
Quoted 114 lines
Quoted 9 lines
The bit definition:
CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
CPUID.(EAX=7,ECX=0):ECX[bit 11] AVX512VNNI
CPUID.(EAX=7,ECX=0):ECX[bit 12]AVX512_BITALGQuoted 3 lines
The release document ref below link:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdfAh! Thank you!
Quoted 100 lines
Signed-off-by Yang Zhong <[email protected]>--- docs/man/xl.cfg.pod.5.in | 3 ++- tools/libxl/libxl_cpuid.c | 6 ++++++ tools/misc/xen-cpuid.c | 13 +++++++------ xen/include/public/arch-x86/cpufeatureset.h | 6 ++++++ xen/tools/gen-cpuid.py | 3 ++- 5 files changed, 23 insertions(+), 8 deletions(-)docs/man/xl.cfg.pod.5.in +2
-1@@ -1731,7 +1731,8 @@ perfctr_core perfctr_nb pge pku popcnt pse pse36 psn rdrand rdseed rdtscp rtm sha skinit smap smep smx ss sse sse2 sse3 sse4.1 sse4.2 sse4_1 sse4_2 sse4a ssse3 svm svm_decode svm_lbrv svm_npt svm_nrips svm_pausefilt svm_tscrate svm_vmcbclean syscall sysenter tbm tm tm2 topoext tsc tsc-deadline tsc_adjust -umip vme vmx wdt x2apic xop xsave xtpr +umip vme vmx wdt x2apic xop xsave xtpr avx512_vbmi2 gfni vaes vpclmulqdq +avx512_vnni avx512_bitalg The xend syntax is a list of values in the form oftools/libxl/libxl_cpuid.c +6
-0@@ -199,6 +199,12 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) {"umip", 0x00000007, 0, CPUID_REG_ECX, 2, 1}, {"pku", 0x00000007, 0, CPUID_REG_ECX, 3, 1}, {"ospke", 0x00000007, 0, CPUID_REG_ECX, 4, 1}, + {"avx512_vbmi2", 0x00000007, 0, CPUID_REG_ECX, 6, 1}, + {"gfni", 0x00000007, 0, CPUID_REG_ECX, 8, 1}, + {"vaes", 0x00000007, 0, CPUID_REG_ECX, 9, 1}, + {"vpclmulqdq", 0x00000007, 0, CPUID_REG_ECX, 10, 1}, + {"avx512_vnni", 0x00000007, 0, CPUID_REG_ECX, 11, 1}, + {"avx512_bitalg",0x00000007, 0, CPUID_REG_ECX, 12, 1}, {"avx512-4vnniw",0x00000007, 0, CPUID_REG_EDX, 2, 1}, {"avx512-4fmaps",0x00000007, 0, CPUID_REG_EDX, 3, 1},tools/misc/xen-cpuid.c +7
-6@@ -120,12 +120,13 @@ static const char *str_Da1[32] =static const char *str_7c0[32 ] = { - [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , - [2 ] ="REZ" , [3 ] ="pku" , - [4 ] ="ospke" , - - [5 ...13 ] ="REZ" , - + [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , + [2 ] ="REZ" , [3 ] ="pku" , + [4 ] ="ospke" , [5 ] ="REZ" , + [6 ] ="avx512_vbmi2" , [7 ] ="REZ" , + [8 ] ="gfni" , [9 ] ="vaes" , + [10 ] ="vpclmulqdq" , [11 ] ="avx512_vnni" , + [12 ] ="avx512_bitalg" ,[13 ] ="REZ" , [14 ] ="avx512_vpopcntdq" , [15 ...31 ] ="REZ" ,xen/include/public/arch-x86/cpufeatureset.h +6
-0@@ -228,6 +228,12 @@ XEN_CPUFEATURE(AVX512VBMI, 6*32+ 1) /*A AVX-512 Vector Byte Manipulation Ins XEN_CPUFEATURE(UMIP, 6*32+ 2) /*S User Mode Instruction Prevention */ XEN_CPUFEATURE(PKU, 6*32+ 3) /*H Protection Keys for Userspace */ XEN_CPUFEATURE(OSPKE, 6*32+ 4) /*! OS Protection Keys Enable */ +XEN_CPUFEATURE(AVX512_VBMI2, 6*32+ 6) /*A addition AVX-512 VBMI Instructions */ +XEN_CPUFEATURE(GFNI, 6*32+ 8) /*A Galois Field New Instructions */ +XEN_CPUFEATURE(VAES, 6*32+ 9) /*A Vector AES instructions */ +XEN_CPUFEATURE(VPCLMULQDQ, 6*32+ 10) /*A vector PCLMULQDQ instructions */ +XEN_CPUFEATURE(AVX512_VNNI, 6*32+ 11) /*A Vector Neural Network Instructions */ +XEN_CPUFEATURE(AVX512_BITALG, 6*32+ 12) /*A support for VPOPCNT[B,W] and VPSHUFBITQMB*/ XEN_CPUFEATURE(AVX512_VPOPCNTDQ, 6*32+14) /*A POPCNT for vectors of DW/QW */XEN_CPUFEATURE (RDPID ,6 *32 +22 )/*A RDPID instruction */ xen/tools/gen-cpuid.py +2
-1@@ -255,7 +255,8 @@ def crunch_numbers(state): # top of AVX512F AVX512F: [AVX512DQ, AVX512IFMA, AVX512PF, AVX512ER, AVX512CD, AVX512BW, AVX512VL, AVX512VBMI, AVX512_4VNNIW, - AVX512_4FMAPS, AVX512_VPOPCNTDQ], + AVX512_4FMAPS, AVX512_VPOPCNTDQ, AVX512_VBMI2, + AVX512_VNNI, AVX512_BITALG], } deep_features = tuple(sorted(deps.keys()))Signature · 1 line
1.9.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 11 lines · Zhong Yang
Quoted 6 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Yang Zhong
Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features need expose to guest.wq
s/wq//
Hello Konrad,
Thanks for reviewing my patch, i will remove this .wq in next version,thanks!
Heh. I also did an review and it looked OK to me. You can also add Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Quoted 119 lines
Regards,
Yang
Quoted 114 lines
Quoted 9 lines
The bit definition:
CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
CPUID.(EAX=7,ECX=0):ECX[bit 11] AVX512VNNI
CPUID.(EAX=7,ECX=0):ECX[bit 12]AVX512_BITALGQuoted 3 lines
The release document ref below link:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdfAh! Thank you!
Quoted 100 lines
Signed-off-by Yang Zhong <[email protected]>--- docs/man/xl.cfg.pod.5.in | 3 ++- tools/libxl/libxl_cpuid.c | 6 ++++++ tools/misc/xen-cpuid.c | 13 +++++++------ xen/include/public/arch-x86/cpufeatureset.h | 6 ++++++ xen/tools/gen-cpuid.py | 3 ++- 5 files changed, 23 insertions(+), 8 deletions(-)docs/man/xl.cfg.pod.5.in +2
-1@@ -1731,7 +1731,8 @@ perfctr_core perfctr_nb pge pku popcnt pse pse36 psn rdrand rdseed rdtscp rtm sha skinit smap smep smx ss sse sse2 sse3 sse4.1 sse4.2 sse4_1 sse4_2 sse4a ssse3 svm svm_decode svm_lbrv svm_npt svm_nrips svm_pausefilt svm_tscrate svm_vmcbclean syscall sysenter tbm tm tm2 topoext tsc tsc-deadline tsc_adjust -umip vme vmx wdt x2apic xop xsave xtpr +umip vme vmx wdt x2apic xop xsave xtpr avx512_vbmi2 gfni vaes vpclmulqdq +avx512_vnni avx512_bitalg The xend syntax is a list of values in the form oftools/libxl/libxl_cpuid.c +6
-0@@ -199,6 +199,12 @@ int libxl_cpuid_parse_config(libxl_cpuid_policy_list *cpuid, const char* str) {"umip", 0x00000007, 0, CPUID_REG_ECX, 2, 1}, {"pku", 0x00000007, 0, CPUID_REG_ECX, 3, 1}, {"ospke", 0x00000007, 0, CPUID_REG_ECX, 4, 1}, + {"avx512_vbmi2", 0x00000007, 0, CPUID_REG_ECX, 6, 1}, + {"gfni", 0x00000007, 0, CPUID_REG_ECX, 8, 1}, + {"vaes", 0x00000007, 0, CPUID_REG_ECX, 9, 1}, + {"vpclmulqdq", 0x00000007, 0, CPUID_REG_ECX, 10, 1}, + {"avx512_vnni", 0x00000007, 0, CPUID_REG_ECX, 11, 1}, + {"avx512_bitalg",0x00000007, 0, CPUID_REG_ECX, 12, 1}, {"avx512-4vnniw",0x00000007, 0, CPUID_REG_EDX, 2, 1}, {"avx512-4fmaps",0x00000007, 0, CPUID_REG_EDX, 3, 1},tools/misc/xen-cpuid.c +7
-6@@ -120,12 +120,13 @@ static const char *str_Da1[32] =static const char *str_7c0[32 ] = { - [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , - [2 ] ="REZ" , [3 ] ="pku" , - [4 ] ="ospke" , - - [5 ...13 ] ="REZ" , - + [0 ] ="prechwt1" , [1 ] ="avx512vbmi" , + [2 ] ="REZ" , [3 ] ="pku" , + [4 ] ="ospke" , [5 ] ="REZ" , + [6 ] ="avx512_vbmi2" , [7 ] ="REZ" , + [8 ] ="gfni" , [9 ] ="vaes" , + [10 ] ="vpclmulqdq" , [11 ] ="avx512_vnni" , + [12 ] ="avx512_bitalg" ,[13 ] ="REZ" , [14 ] ="avx512_vpopcntdq" , [15 ...31 ] ="REZ" ,xen/include/public/arch-x86/cpufeatureset.h +6
-0@@ -228,6 +228,12 @@ XEN_CPUFEATURE(AVX512VBMI, 6*32+ 1) /*A AVX-512 Vector Byte Manipulation Ins XEN_CPUFEATURE(UMIP, 6*32+ 2) /*S User Mode Instruction Prevention */ XEN_CPUFEATURE(PKU, 6*32+ 3) /*H Protection Keys for Userspace */ XEN_CPUFEATURE(OSPKE, 6*32+ 4) /*! OS Protection Keys Enable */ +XEN_CPUFEATURE(AVX512_VBMI2, 6*32+ 6) /*A addition AVX-512 VBMI Instructions */ +XEN_CPUFEATURE(GFNI, 6*32+ 8) /*A Galois Field New Instructions */ +XEN_CPUFEATURE(VAES, 6*32+ 9) /*A Vector AES instructions */ +XEN_CPUFEATURE(VPCLMULQDQ, 6*32+ 10) /*A vector PCLMULQDQ instructions */ +XEN_CPUFEATURE(AVX512_VNNI, 6*32+ 11) /*A Vector Neural Network Instructions */ +XEN_CPUFEATURE(AVX512_BITALG, 6*32+ 12) /*A support for VPOPCNT[B,W] and VPSHUFBITQMB*/ XEN_CPUFEATURE(AVX512_VPOPCNTDQ, 6*32+14) /*A POPCNT for vectors of DW/QW */XEN_CPUFEATURE (RDPID ,6 *32 +22 )/*A RDPID instruction */ xen/tools/gen-cpuid.py +2
-1@@ -255,7 +255,8 @@ def crunch_numbers(state): # top of AVX512F AVX512F: [AVX512DQ, AVX512IFMA, AVX512PF, AVX512ER, AVX512CD, AVX512BW, AVX512VL, AVX512VBMI, AVX512_4VNNIW, - AVX512_4FMAPS, AVX512_VPOPCNTDQ], + AVX512_4FMAPS, AVX512_VPOPCNTDQ, AVX512_VBMI2, + AVX512_VNNI, AVX512_BITALG], } deep_features = tuple(sorted(deps.keys()))Signature · 1 line
1.9.1
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 27.10.17 at 16:18, <[email protected]> wrote:
Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features need expose to guest.wq
First of all, please don't forget to Cc relevant maintainers.
Quoted 5 lines
The bit definition:
CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
These last three have VEX (and for GFNI even legacy) encodings. While it wouldn't be reasonable yet to request EVEX encoded insn support to be added to the emulator while enabling new ISA extensions, I think legacy and VEX encoded ones should be taken care of with the state the emulator is currently in.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 7 lines · Jan Beulich
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 27.10.17 at 16:18, <[email protected]> wrote:
Intel IceLake cpu has added new cpu features: AVX512VBMI2/GFNI/ VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features need expose to guest.wq
First of all, please don't forget to Cc relevant maintainers.
Thanks Jan's remind.
Quoted 6 lines
Quoted 5 lines
The bit definition:
CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
Quoted 7 lines
These last three have VEX (and for GFNI even legacy) encodings. While it wouldn't be reasonable yet to request EVEX encoded insn support to be added to the emulator while enabling new ISA extensions, I think legacy and VEX encoded ones should be taken care of with the state the emulator is currently in.
Jan
Hello Jan,
Thanks for reviewing my patch!
For those new instructions, you mean i also need to support those three instructions(GFNI,VAES and VPCLMULQDQ) in x86_emulate() in PV?
Many thanks!
Regards,
Yang
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 07.11.17 at 07:28, <[email protected]> wrote:
For those new instructions, you mean i also need to support those three
instructions(GFNI,VAES and VPCLMULQDQ)inx86_emulate()in PV?
Why three instructions? And why PV? I'm afraid I'm confused, and hence I'm afraid simply saying "yes" to your question might not be enough.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 9 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 07.11.17 at 07:28, <[email protected]> wrote:
For those new instructions, you mean i also need to support those three
instructions(GFNI,VAES and VPCLMULQDQ)inx86_emulate()in PV?Why three instructions? And why PV? I'm afraid I'm confused, and hence I'm afraid simply saying "yes" to your question might not be enough.
Jan
Hello Jan,
Sorry for my unclear answer!
My understanding is i need to implement x86 emulator for legacy and VEX CPU features(GFNI,VAES and VPCLMULQDQ), right?
As for this patch, whether it is suitable for merge into Xen upstream this time?
x86 emulator patches for some intel's CPU features are in our plan and we will send those related patches in future.
Regards,
Yang
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 3 lines
Quoted 1 line
Quoted 1 line · On 07.11.17 at 10:34, <[email protected]> wrote:
My understanding is i need to implement x86 emulator for legacy and VEX CPU
features(GFNI,VAES and VPCLMULQDQ), right?
Yes.
Quoted 2 lines
As for this patch, whether it is suitable for merge into Xen upstream this time?
At this time no in any event - the tree is frozen for 4.10. And once the tree re-opens, the requested emulator additions are then a prereq for the one here to go in.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel