Skip to content

Commit 1fc3d0e

Browse files
committed
tools headers kvm: Sync kvm headers with the kernel sources
To pick up the changes from: 14edff8 Merge tag 'kvmarm-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD a4b28f5 Merge remote-tracking branch 'kvmarm/kvm-arm64/stolen-time' into kvmarm-master/next 58772e9 ("KVM: arm64: Provide VCPU attributes for stolen time") da34517 ("KVM: arm/arm64: Allow user injection of external data aborts") c726200 ("KVM: arm/arm64: Allow reporting non-ISV data aborts to userspace") efe5ddc ("KVM: PPC: Book3S HV: XIVE: Allow userspace to set the # of VPs") No tools changes are caused by this, as the only defines so far used from these files are for syscall arg pretty printing are: $ grep KVM tools/perf/trace/beauty/*.sh tools/perf/trace/beauty/kvm_ioctl.sh:regex='^#[[:space:]]*define[[:space:]]+KVM_(\w+)[[:space:]]+_IO[RW]*\([[:space:]]*KVMIO[[:space:]]*,[[:space:]]*(0x[[:xdigit:]]+).*' $ Some are also include by: tools/perf/arch/x86/util/kvm-stat.c tools/perf/arch/powerpc/util/kvm-stat.c This addresses these tools/perf build warnings: Warning: Kernel ABI header at 'tools/include/uapi/linux/kvm.h' differs from latest version at 'include/uapi/linux/kvm.h' diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h Warning: Kernel ABI header at 'tools/arch/powerpc/include/uapi/asm/kvm.h' differs from latest version at 'arch/powerpc/include/uapi/asm/kvm.h' diff -u tools/arch/powerpc/include/uapi/asm/kvm.h arch/powerpc/include/uapi/asm/kvm.h Warning: Kernel ABI header at 'tools/arch/arm/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm/include/uapi/asm/kvm.h' diff -u tools/arch/arm/include/uapi/asm/kvm.h arch/arm/include/uapi/asm/kvm.h Warning: Kernel ABI header at 'tools/arch/arm64/include/uapi/asm/kvm.h' differs from latest version at 'arch/arm64/include/uapi/asm/kvm.h' diff -u tools/arch/arm64/include/uapi/asm/kvm.h arch/arm64/include/uapi/asm/kvm.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Christoffer Dall <christoffer.dall@arm.com> Cc: Fabiano Rosas <farosas@linux.ibm.com> Cc: Greg Kurz <groug@kaod.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Marc Zyngier <maz@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@ozlabs.org> Cc: Steven Price <steven.price@arm.com> Link: https://lkml.kernel.org/n/tip-qrjdudhq25mk5bfnhveofbm4@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent c66f256 commit 1fc3d0e

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

  • tools
    • arch
      • arm64/include/uapi/asm
      • arm/include/uapi/asm
      • powerpc/include/uapi/asm
    • include/uapi/linux

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ struct kvm_vcpu_events {
131131
struct {
132132
__u8 serror_pending;
133133
__u8 serror_has_esr;
134+
__u8 ext_dabt_pending;
134135
/* Align it to 8 bytes */
135-
__u8 pad[6];
136+
__u8 pad[5];
136137
__u64 serror_esr;
137138
} exception;
138139
__u32 reserved[12];

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,9 @@ struct kvm_vcpu_events {
164164
struct {
165165
__u8 serror_pending;
166166
__u8 serror_has_esr;
167+
__u8 ext_dabt_pending;
167168
/* Align it to 8 bytes */
168-
__u8 pad[6];
169+
__u8 pad[5];
169170
__u64 serror_esr;
170171
} exception;
171172
__u32 reserved[12];
@@ -323,6 +324,8 @@ struct kvm_vcpu_events {
323324
#define KVM_ARM_VCPU_TIMER_CTRL 1
324325
#define KVM_ARM_VCPU_TIMER_IRQ_VTIMER 0
325326
#define KVM_ARM_VCPU_TIMER_IRQ_PTIMER 1
327+
#define KVM_ARM_VCPU_PVTIME_CTRL 2
328+
#define KVM_ARM_VCPU_PVTIME_IPA 0
326329

327330
/* KVM_IRQ_LINE irq field index values */
328331
#define KVM_ARM_IRQ_VCPU2_SHIFT 28

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,8 @@ struct kvm_ppc_cpu_char {
667667

668668
/* PPC64 eXternal Interrupt Controller Specification */
669669
#define KVM_DEV_XICS_GRP_SOURCES 1 /* 64-bit source attributes */
670+
#define KVM_DEV_XICS_GRP_CTRL 2
671+
#define KVM_DEV_XICS_NR_SERVERS 1
670672

671673
/* Layout of 64-bit source attribute values */
672674
#define KVM_XICS_DESTINATION_SHIFT 0
@@ -683,6 +685,7 @@ struct kvm_ppc_cpu_char {
683685
#define KVM_DEV_XIVE_GRP_CTRL 1
684686
#define KVM_DEV_XIVE_RESET 1
685687
#define KVM_DEV_XIVE_EQ_SYNC 2
688+
#define KVM_DEV_XIVE_NR_SERVERS 3
686689
#define KVM_DEV_XIVE_GRP_SOURCE 2 /* 64-bit source identifier */
687690
#define KVM_DEV_XIVE_GRP_SOURCE_CONFIG 3 /* 64-bit source identifier */
688691
#define KVM_DEV_XIVE_GRP_EQ_CONFIG 4 /* 64-bit EQ identifier */

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ struct kvm_hyperv_exit {
235235
#define KVM_EXIT_S390_STSI 25
236236
#define KVM_EXIT_IOAPIC_EOI 26
237237
#define KVM_EXIT_HYPERV 27
238+
#define KVM_EXIT_ARM_NISV 28
238239

239240
/* For KVM_EXIT_INTERNAL_ERROR */
240241
/* Emulate instruction failed. */
@@ -394,6 +395,11 @@ struct kvm_run {
394395
} eoi;
395396
/* KVM_EXIT_HYPERV */
396397
struct kvm_hyperv_exit hyperv;
398+
/* KVM_EXIT_ARM_NISV */
399+
struct {
400+
__u64 esr_iss;
401+
__u64 fault_ipa;
402+
} arm_nisv;
397403
/* Fix the size of the union. */
398404
char padding[256];
399405
};
@@ -1000,6 +1006,9 @@ struct kvm_ppc_resize_hpt {
10001006
#define KVM_CAP_PMU_EVENT_FILTER 173
10011007
#define KVM_CAP_ARM_IRQ_LINE_LAYOUT_2 174
10021008
#define KVM_CAP_HYPERV_DIRECT_TLBFLUSH 175
1009+
#define KVM_CAP_PPC_GUEST_DEBUG_SSTEP 176
1010+
#define KVM_CAP_ARM_NISV_TO_USER 177
1011+
#define KVM_CAP_ARM_INJECT_EXT_DABT 178
10031012

10041013
#ifdef KVM_CAP_IRQ_ROUTING
10051014

@@ -1227,6 +1236,8 @@ enum kvm_device_type {
12271236
#define KVM_DEV_TYPE_ARM_VGIC_ITS KVM_DEV_TYPE_ARM_VGIC_ITS
12281237
KVM_DEV_TYPE_XIVE,
12291238
#define KVM_DEV_TYPE_XIVE KVM_DEV_TYPE_XIVE
1239+
KVM_DEV_TYPE_ARM_PV_TIME,
1240+
#define KVM_DEV_TYPE_ARM_PV_TIME KVM_DEV_TYPE_ARM_PV_TIME
12301241
KVM_DEV_TYPE_MAX,
12311242
};
12321243

0 commit comments

Comments
 (0)