mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
tools headers: Sync KVM headers with the kernel sources
To pick up the changes in:ac3e65dddd("KVM: PPC: Introduce KVM_CAP_PPC_COMPAT_CAPS and wire up ioctl")ad220e275c("KVM: arm64: Add KVM_ARM_VCPU_PMU_V3_STRICT vCPU feature")7bb6284aa7("Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm")b76fb087ef("KVM: PPC: Book3S HV: Implement compat CPU capability retrieval for KVM on PowerVM")453f6ff04b("KVM: arm64: Expose PMMIR_EL1.SLOTS under strict PMUv3 UAPI") That don't result in changes to the string tables generated from these headers. This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h diff -u tools/arch/powerpc/include/uapi/asm/kvm.h arch/powerpc/include/uapi/asm/kvm.h diff -u tools/arch/arm64/include/uapi/asm/kvm.h arch/arm64/include/uapi/asm/kvm.h Please see tools/include/uapi/README for further details. Reviewed-by: Ian Rogers <irogers@google.com> Cc: Amit Machhiwal <amachhiw@linux.ibm.com> Cc: Congkai Tan <congkai@amazon.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
95074c8492
commit
cb28bc71af
|
|
@ -106,6 +106,7 @@ struct kvm_regs {
|
|||
#define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 /* VCPU uses generic authentication */
|
||||
#define KVM_ARM_VCPU_HAS_EL2 7 /* Support nested virtualization */
|
||||
#define KVM_ARM_VCPU_HAS_EL2_E2H0 8 /* Limit NV support to E2H RES0 */
|
||||
#define KVM_ARM_VCPU_PMU_V3_STRICT 9 /* No default PMU creation */
|
||||
|
||||
struct kvm_vcpu_init {
|
||||
__u32 target;
|
||||
|
|
|
|||
|
|
@ -437,6 +437,24 @@ struct kvm_ppc_cpu_char {
|
|||
__u64 behaviour_mask; /* valid bits in behaviour */
|
||||
};
|
||||
|
||||
/* For KVM_PPC_GET_COMPAT_CAPS */
|
||||
struct kvm_ppc_compat_caps {
|
||||
__u64 size; /* Size of this structure */
|
||||
__u64 flags; /* Reserved for future use */
|
||||
__u64 compat_capabilities; /* Capabilities supported by the host */
|
||||
};
|
||||
#define KVM_PPC_COMPAT_CAPS_SIZE_VER0 24 /* sizeof first published struct */
|
||||
|
||||
/*
|
||||
* Capability bits for compat_capabilities field in kvm_ppc_compat_caps.
|
||||
* These bits indicate which processor compatibility modes are supported.
|
||||
*/
|
||||
#define KVM_PPC_COMPAT_CAP_POWER9 (1ULL << 62)
|
||||
#define KVM_PPC_COMPAT_CAP_POWER10 (1ULL << 61)
|
||||
#define KVM_PPC_COMPAT_CAP_POWER11 (1ULL << 60)
|
||||
#define KVM_PPC_COMPAT_BITMASK (KVM_PPC_COMPAT_CAP_POWER9 | \
|
||||
KVM_PPC_COMPAT_CAP_POWER10 | \
|
||||
KVM_PPC_COMPAT_CAP_POWER11)
|
||||
/*
|
||||
* Values for character and character_mask.
|
||||
* These are identical to the values used by H_GET_CPU_CHARACTERISTICS.
|
||||
|
|
|
|||
|
|
@ -997,6 +997,8 @@ struct kvm_enable_cap {
|
|||
#define KVM_CAP_S390_KEYOP 247
|
||||
#define KVM_CAP_S390_VSIE_ESAMODE 248
|
||||
#define KVM_CAP_S390_HPAGE_2G 249
|
||||
#define KVM_CAP_PPC_COMPAT_CAPS 250
|
||||
#define KVM_CAP_ARM_PMU_V3_STRICT 251
|
||||
|
||||
struct kvm_irq_routing_irqchip {
|
||||
__u32 irqchip;
|
||||
|
|
@ -1341,6 +1343,8 @@ struct kvm_s390_keyop {
|
|||
/* Available with KVM_CAP_COUNTER_OFFSET */
|
||||
#define KVM_ARM_SET_COUNTER_OFFSET _IOW(KVMIO, 0xb5, struct kvm_arm_counter_offset)
|
||||
#define KVM_ARM_GET_REG_WRITABLE_MASKS _IOR(KVMIO, 0xb6, struct reg_mask_range)
|
||||
/* Available with KVM_CAP_PPC_COMPAT_CAPS */
|
||||
#define KVM_PPC_GET_COMPAT_CAPS _IO(KVMIO, 0xb8)
|
||||
|
||||
/* ioctl for vm fd */
|
||||
#define KVM_CREATE_DEVICE _IOWR(KVMIO, 0xe0, struct kvm_create_device)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user