Skip to content

Commit ec39812

Browse files
committed
tools: sync up .h files with the repective arch and uapi .h files
perf wants matching .h files otherwise it complains during the build process. As these files have been modified over the past few 4.14.y releases, they are out of sync, so fix that problem by properly copying the respective versions to the tools/ mirror copies. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c0f1d9b commit ec39812

8 files changed

Lines changed: 336 additions & 268 deletions

File tree

‎tools/arch/arm/include/uapi/asm/kvm.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ struct kvm_arch_memory_slot {
180180
#define KVM_REG_ARM_VFP_FPINST 0x1009
181181
#define KVM_REG_ARM_VFP_FPINST2 0x100A
182182

183+
/* KVM-as-firmware specific pseudo-registers */
184+
#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT)
185+
#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM | KVM_REG_SIZE_U64 | \
186+
KVM_REG_ARM_FW | ((r) & 0xffff))
187+
#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0)
188+
183189
/* Device Control API: ARM VGIC */
184190
#define KVM_DEV_ARM_VGIC_GRP_ADDR 0
185191
#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1

‎tools/arch/arm64/include/uapi/asm/kvm.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,12 @@ struct kvm_arch_memory_slot {
200200
#define KVM_REG_ARM_TIMER_CNT ARM64_SYS_REG(3, 3, 14, 3, 2)
201201
#define KVM_REG_ARM_TIMER_CVAL ARM64_SYS_REG(3, 3, 14, 0, 2)
202202

203+
/* KVM-as-firmware specific pseudo-registers */
204+
#define KVM_REG_ARM_FW (0x0014 << KVM_REG_ARM_COPROC_SHIFT)
205+
#define KVM_REG_ARM_FW_REG(r) (KVM_REG_ARM64 | KVM_REG_SIZE_U64 | \
206+
KVM_REG_ARM_FW | ((r) & 0xffff))
207+
#define KVM_REG_ARM_PSCI_VERSION KVM_REG_ARM_FW_REG(0)
208+
203209
/* Device Control API: ARM VGIC */
204210
#define KVM_DEV_ARM_VGIC_GRP_ADDR 0
205211
#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1

‎tools/arch/powerpc/include/uapi/asm/kvm.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,8 @@ struct kvm_ppc_rmmu_info {
607607
#define KVM_REG_PPC_TIDR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbc)
608608
#define KVM_REG_PPC_PSSCR (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbd)
609609

610+
#define KVM_REG_PPC_DEC_EXPIRY (KVM_REG_PPC | KVM_REG_SIZE_U64 | 0xbe)
611+
610612
/* Transactional Memory checkpointed state:
611613
* This is all GPRs, all VSX regs and a subset of SPRs
612614
*/

‎tools/arch/s390/include/uapi/asm/kvm.h‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ struct kvm_guest_debug_arch {
228228
#define KVM_SYNC_RICCB (1UL << 7)
229229
#define KVM_SYNC_FPRS (1UL << 8)
230230
#define KVM_SYNC_GSCB (1UL << 9)
231+
#define KVM_SYNC_BPBC (1UL << 10)
231232
/* length and alignment of the sdnx as a power of two */
232233
#define SDNXC 8
233234
#define SDNXL (1UL << SDNXC)
@@ -251,7 +252,9 @@ struct kvm_sync_regs {
251252
};
252253
__u8 reserved[512]; /* for future vector expansion */
253254
__u32 fpc; /* valid on KVM_SYNC_VRS or KVM_SYNC_FPRS */
254-
__u8 padding1[52]; /* riccb needs to be 64byte aligned */
255+
__u8 bpbc : 1; /* bp mode */
256+
__u8 reserved2 : 7;
257+
__u8 padding1[51]; /* riccb needs to be 64byte aligned */
255258
__u8 riccb[64]; /* runtime instrumentation controls block */
256259
__u8 padding2[192]; /* sdnx needs to be 256byte aligned */
257260
union {

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

Lines changed: 306 additions & 264 deletions
Large diffs are not rendered by default.

‎tools/arch/x86/include/asm/disabled-features.h‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@
4444
# define DISABLE_LA57 (1<<(X86_FEATURE_LA57 & 31))
4545
#endif
4646

47+
#ifdef CONFIG_PAGE_TABLE_ISOLATION
48+
# define DISABLE_PTI 0
49+
#else
50+
# define DISABLE_PTI (1 << (X86_FEATURE_PTI & 31))
51+
#endif
52+
4753
/*
4854
* Make sure to add features to the correct mask
4955
*/
@@ -54,7 +60,7 @@
5460
#define DISABLED_MASK4 (DISABLE_PCID)
5561
#define DISABLED_MASK5 0
5662
#define DISABLED_MASK6 0
57-
#define DISABLED_MASK7 0
63+
#define DISABLED_MASK7 (DISABLE_PTI)
5864
#define DISABLED_MASK8 0
5965
#define DISABLED_MASK9 (DISABLE_MPX)
6066
#define DISABLED_MASK10 0
@@ -65,6 +71,7 @@
6571
#define DISABLED_MASK15 0
6672
#define DISABLED_MASK16 (DISABLE_PKU|DISABLE_OSPKE|DISABLE_LA57)
6773
#define DISABLED_MASK17 0
68-
#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 18)
74+
#define DISABLED_MASK18 0
75+
#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
6976

7077
#endif /* _ASM_X86_DISABLED_FEATURES_H */

‎tools/arch/x86/include/asm/required-features.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
#define REQUIRED_MASK15 0
107107
#define REQUIRED_MASK16 (NEED_LA57)
108108
#define REQUIRED_MASK17 0
109-
#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 18)
109+
#define REQUIRED_MASK18 0
110+
#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
110111

111112
#endif /* _ASM_X86_REQUIRED_FEATURES_H */

‎tools/include/uapi/linux/kvm.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ struct kvm_ppc_resize_hpt {
931931
#define KVM_CAP_PPC_SMT_POSSIBLE 147
932932
#define KVM_CAP_HYPERV_SYNIC2 148
933933
#define KVM_CAP_HYPERV_VP_INDEX 149
934+
#define KVM_CAP_S390_BPB 152
934935

935936
#ifdef KVM_CAP_IRQ_ROUTING
936937

0 commit comments

Comments
 (0)