Skip to content

Commit 8fa83ff

Browse files
committed
Add traits for new AVX512 CPU feature
To support new AVX512 cpu feature, this patch adds the mapping between cpu features reported by libvirt [1] and corresponding os-traits [2]. The traits include 'AVX512VBMI', 'AVX512IFMA', 'AVX512VBMI2', 'AVX512BITALG', 'AVX512VAES', 'AVX512GFNI', 'AVX512VPCLMULQDQ' and 'AVX512VPOPCNTDQ'. [1] https://github.com/libvirt/libvirt/blob/master/src/cpu_map/x86_features.xml [2] https://review.opendev.org/#/c/728576/ Depends-On: I58cba02f204d2e19a1a838852c628694edd47d73 Change-Id: I212a84e5cae15bc133aafd538d55f85149ab360f
1 parent bcd94d1 commit 8fa83ff

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

lower-constraints.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ os-brick==3.0.1
6767
os-client-config==1.29.0
6868
os-resource-classes==0.4.0
6969
os-service-types==1.7.0
70-
os-traits==2.2.0
70+
os-traits==2.4.0
7171
os-vif==1.14.0
7272
os-win==3.0.0
7373
os-xenapi==0.3.3

nova/virt/libvirt/utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@
6262
'avx512pf': os_traits.HW_CPU_X86_AVX512PF,
6363
'avx512vl': os_traits.HW_CPU_X86_AVX512VL,
6464
'avx512vnni': os_traits.HW_CPU_X86_AVX512VNNI,
65+
'avx512vbmi': os_traits.HW_CPU_X86_AVX512VBMI,
66+
'avx512ifma': os_traits.HW_CPU_X86_AVX512IFMA,
67+
'avx512vbmi2': os_traits.HW_CPU_X86_AVX512VBMI2,
68+
'avx512bitalg': os_traits.HW_CPU_X86_AVX512BITALG,
69+
'vaes': os_traits.HW_CPU_X86_AVX512VAES,
70+
'gfni': os_traits.HW_CPU_X86_AVX512GFNI,
71+
'vpclmulqdq': os_traits.HW_CPU_X86_AVX512VPCLMULQDQ,
72+
'avx512-vpopcntdq': os_traits.HW_CPU_X86_AVX512VPOPCNTDQ,
6573
'bmi1': os_traits.HW_CPU_X86_BMI,
6674
'bmi2': os_traits.HW_CPU_X86_BMI2,
6775
'pclmuldq': os_traits.HW_CPU_X86_CLMUL,

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ psutil>=3.2.2 # BSD
5454
oslo.versionedobjects>=1.35.0 # Apache-2.0
5555
os-brick>=3.0.1 # Apache-2.0
5656
os-resource-classes>=0.4.0 # Apache-2.0
57-
os-traits>=2.2.0 # Apache-2.0
57+
os-traits>=2.4.0 # Apache-2.0
5858
os-vif>=1.14.0 # Apache-2.0
5959
os-win>=3.0.0 # Apache-2.0
6060
castellan>=0.16.0 # Apache-2.0

0 commit comments

Comments
 (0)