Skip to content

Commit 6faf64f

Browse files
committed
tools headers cpufeatures: Sync with the kernel sources
To pick the changes from: 4e62921 ("x86/paravirt: Add new features for paravirt patching") a161545 ("x86/cpufeatures: Enumerate Intel Hybrid Technology feature bit") a89dfde ("x86: Remove dynamic NOP selection") b8921dc ("x86/cpufeatures: Add SGX1 and SGX2 sub-features") f21d4d3 ("x86/cpufeatures: Enumerate #DB for bus lock detection") f333374 ("x86/cpufeatures: Add the Virtual SPEC_CTRL feature") This only causes these perf files to be rebuilt: CC /tmp/build/perf/bench/mem-memcpy-x86-64-asm.o CC /tmp/build/perf/bench/mem-memset-x86-64-asm.o And addresses this perf build warning: Warning: Kernel ABI header at 'tools/arch/x86/include/asm/cpufeatures.h' differs from latest version at 'arch/x86/include/asm/cpufeatures.h' diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h Cc: Babu Moger <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Fenghua Yu <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ricardo Neri <[email protected]> Cc: Sean Christopherson <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 3916329 commit 6faf64f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/arch/x86/include/asm/cpufeatures.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
/* CPU types for specific tunings: */
8686
#define X86_FEATURE_K8 ( 3*32+ 4) /* "" Opteron, Athlon64 */
87-
#define X86_FEATURE_K7 ( 3*32+ 5) /* "" Athlon */
87+
/* FREE, was #define X86_FEATURE_K7 ( 3*32+ 5) "" Athlon */
8888
#define X86_FEATURE_P3 ( 3*32+ 6) /* "" P3 */
8989
#define X86_FEATURE_P4 ( 3*32+ 7) /* "" P4 */
9090
#define X86_FEATURE_CONSTANT_TSC ( 3*32+ 8) /* TSC ticks at a constant rate */
@@ -236,6 +236,8 @@
236236
#define X86_FEATURE_EPT_AD ( 8*32+17) /* Intel Extended Page Table access-dirty bit */
237237
#define X86_FEATURE_VMCALL ( 8*32+18) /* "" Hypervisor supports the VMCALL instruction */
238238
#define X86_FEATURE_VMW_VMMCALL ( 8*32+19) /* "" VMware prefers VMMCALL hypercall instruction */
239+
#define X86_FEATURE_PVUNLOCK ( 8*32+20) /* "" PV unlock function */
240+
#define X86_FEATURE_VCPUPREEMPT ( 8*32+21) /* "" PV vcpu_is_preempted function */
239241

240242
/* Intel-defined CPU features, CPUID level 0x00000007:0 (EBX), word 9 */
241243
#define X86_FEATURE_FSGSBASE ( 9*32+ 0) /* RDFSBASE, WRFSBASE, RDGSBASE, WRGSBASE instructions*/
@@ -290,6 +292,8 @@
290292
#define X86_FEATURE_FENCE_SWAPGS_KERNEL (11*32+ 5) /* "" LFENCE in kernel entry SWAPGS path */
291293
#define X86_FEATURE_SPLIT_LOCK_DETECT (11*32+ 6) /* #AC for split lock */
292294
#define X86_FEATURE_PER_THREAD_MBA (11*32+ 7) /* "" Per-thread Memory Bandwidth Allocation */
295+
#define X86_FEATURE_SGX1 (11*32+ 8) /* "" Basic SGX */
296+
#define X86_FEATURE_SGX2 (11*32+ 9) /* "" SGX Enclave Dynamic Memory Management (EDMM) */
293297

294298
/* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */
295299
#define X86_FEATURE_AVX_VNNI (12*32+ 4) /* AVX VNNI instructions */
@@ -336,6 +340,7 @@
336340
#define X86_FEATURE_AVIC (15*32+13) /* Virtual Interrupt Controller */
337341
#define X86_FEATURE_V_VMSAVE_VMLOAD (15*32+15) /* Virtual VMSAVE VMLOAD */
338342
#define X86_FEATURE_VGIF (15*32+16) /* Virtual GIF */
343+
#define X86_FEATURE_V_SPEC_CTRL (15*32+20) /* Virtual SPEC_CTRL */
339344
#define X86_FEATURE_SVME_ADDR_CHK (15*32+28) /* "" SVME addr check */
340345

341346
/* Intel-defined CPU features, CPUID level 0x00000007:0 (ECX), word 16 */
@@ -354,6 +359,7 @@
354359
#define X86_FEATURE_AVX512_VPOPCNTDQ (16*32+14) /* POPCNT for vectors of DW/QW */
355360
#define X86_FEATURE_LA57 (16*32+16) /* 5-level page tables */
356361
#define X86_FEATURE_RDPID (16*32+22) /* RDPID instruction */
362+
#define X86_FEATURE_BUS_LOCK_DETECT (16*32+24) /* Bus Lock detect */
357363
#define X86_FEATURE_CLDEMOTE (16*32+25) /* CLDEMOTE instruction */
358364
#define X86_FEATURE_MOVDIRI (16*32+27) /* MOVDIRI instruction */
359365
#define X86_FEATURE_MOVDIR64B (16*32+28) /* MOVDIR64B instruction */
@@ -374,6 +380,7 @@
374380
#define X86_FEATURE_MD_CLEAR (18*32+10) /* VERW clears CPU buffers */
375381
#define X86_FEATURE_TSX_FORCE_ABORT (18*32+13) /* "" TSX_FORCE_ABORT */
376382
#define X86_FEATURE_SERIALIZE (18*32+14) /* SERIALIZE instruction */
383+
#define X86_FEATURE_HYBRID_CPU (18*32+15) /* "" This part has CPUs of more than one type */
377384
#define X86_FEATURE_TSXLDTRK (18*32+16) /* TSX Suspend Load Address Tracking */
378385
#define X86_FEATURE_PCONFIG (18*32+18) /* Intel PCONFIG */
379386
#define X86_FEATURE_ARCH_LBR (18*32+19) /* Intel ARCH LBR */

0 commit comments

Comments
 (0)