diff options
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/cpufeatures.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/io.h | 6 | ||||
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 3 | ||||
-rw-r--r-- | arch/x86/include/asm/thread_info.h | 9 |
4 files changed, 17 insertions, 3 deletions
diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 1188bc849ee3..a39629206864 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h | |||
@@ -194,6 +194,8 @@ | |||
194 | #define X86_FEATURE_PROC_FEEDBACK ( 7*32+ 9) /* AMD ProcFeedbackInterface */ | 194 | #define X86_FEATURE_PROC_FEEDBACK ( 7*32+ 9) /* AMD ProcFeedbackInterface */ |
195 | 195 | ||
196 | #define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */ | 196 | #define X86_FEATURE_INTEL_PT ( 7*32+15) /* Intel Processor Trace */ |
197 | #define X86_FEATURE_AVX512_4VNNIW (7*32+16) /* AVX-512 Neural Network Instructions */ | ||
198 | #define X86_FEATURE_AVX512_4FMAPS (7*32+17) /* AVX-512 Multiply Accumulation Single precision */ | ||
197 | 199 | ||
198 | /* Virtualization flags: Linux defined, word 8 */ | 200 | /* Virtualization flags: Linux defined, word 8 */ |
199 | #define X86_FEATURE_TPR_SHADOW ( 8*32+ 0) /* Intel TPR Shadow */ | 201 | #define X86_FEATURE_TPR_SHADOW ( 8*32+ 0) /* Intel TPR Shadow */ |
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index de25aad07853..d34bd370074b 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h | |||
@@ -351,4 +351,10 @@ extern void arch_phys_wc_del(int handle); | |||
351 | #define arch_phys_wc_add arch_phys_wc_add | 351 | #define arch_phys_wc_add arch_phys_wc_add |
352 | #endif | 352 | #endif |
353 | 353 | ||
354 | #ifdef CONFIG_X86_PAT | ||
355 | extern int arch_io_reserve_memtype_wc(resource_size_t start, resource_size_t size); | ||
356 | extern void arch_io_free_memtype_wc(resource_size_t start, resource_size_t size); | ||
357 | #define arch_io_reserve_memtype_wc arch_io_reserve_memtype_wc | ||
358 | #endif | ||
359 | |||
354 | #endif /* _ASM_X86_IO_H */ | 360 | #endif /* _ASM_X86_IO_H */ |
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 4b20f7304b9c..bdde80731f49 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -948,7 +948,6 @@ struct kvm_x86_ops { | |||
948 | int (*get_lpage_level)(void); | 948 | int (*get_lpage_level)(void); |
949 | bool (*rdtscp_supported)(void); | 949 | bool (*rdtscp_supported)(void); |
950 | bool (*invpcid_supported)(void); | 950 | bool (*invpcid_supported)(void); |
951 | void (*adjust_tsc_offset_guest)(struct kvm_vcpu *vcpu, s64 adjustment); | ||
952 | 951 | ||
953 | void (*set_tdp_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3); | 952 | void (*set_tdp_cr3)(struct kvm_vcpu *vcpu, unsigned long cr3); |
954 | 953 | ||
@@ -958,8 +957,6 @@ struct kvm_x86_ops { | |||
958 | 957 | ||
959 | void (*write_tsc_offset)(struct kvm_vcpu *vcpu, u64 offset); | 958 | void (*write_tsc_offset)(struct kvm_vcpu *vcpu, u64 offset); |
960 | 959 | ||
961 | u64 (*read_l1_tsc)(struct kvm_vcpu *vcpu, u64 host_tsc); | ||
962 | |||
963 | void (*get_exit_info)(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2); | 960 | void (*get_exit_info)(struct kvm_vcpu *vcpu, u64 *info1, u64 *info2); |
964 | 961 | ||
965 | int (*check_intercept)(struct kvm_vcpu *vcpu, | 962 | int (*check_intercept)(struct kvm_vcpu *vcpu, |
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index 2aaca53c0974..ad6f5eb07a95 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h | |||
@@ -52,6 +52,15 @@ struct task_struct; | |||
52 | #include <asm/cpufeature.h> | 52 | #include <asm/cpufeature.h> |
53 | #include <linux/atomic.h> | 53 | #include <linux/atomic.h> |
54 | 54 | ||
55 | struct thread_info { | ||
56 | unsigned long flags; /* low level flags */ | ||
57 | }; | ||
58 | |||
59 | #define INIT_THREAD_INFO(tsk) \ | ||
60 | { \ | ||
61 | .flags = 0, \ | ||
62 | } | ||
63 | |||
55 | #define init_stack (init_thread_union.stack) | 64 | #define init_stack (init_thread_union.stack) |
56 | 65 | ||
57 | #else /* !__ASSEMBLY__ */ | 66 | #else /* !__ASSEMBLY__ */ |