update Linux headers to 4.6
PATCH 1/1 update Linux headers to 4.6
Signed-off-by Paolo Bonzini <[email protected]>
--- include/standard-headers/asm-x86/hyperv.h | 4 +- include/standard-headers/linux/input.h | 1 + include/standard-headers/linux/types.h | 5 +- include/standard-headers/linux/virtio_balloon.h | 2 +- include/standard-headers/linux/virtio_blk.h | 6 +- linux-headers/asm-arm64/kvm.h | 6 ++ linux-headers/asm-powerpc/epapr_hcalls.h | 4 +- linux-headers/asm-powerpc/kvm.h | 9 +++ linux-headers/asm-x86/unistd_32.h | 2 + linux-headers/asm-x86/unistd_64.h | 2 + linux-headers/linux/kvm.h | 11 +++ linux-headers/linux/userfaultfd.h | 2 +- linux-headers/linux/vfio.h | 92 ++++++++++++++++++++++++- linux-headers/linux/vhost.h | 6 ++ 14 files changed, 140 insertions(+), 12 deletions(-)
include/standard-headers/asm-x86/hyperv.h +3 -1
@@ -226,7 +226,9 @@ (~((1ull <<HV_X64_MSR_HYPERCALL_PAGE_ADDRESS_SHIFT ) -1 )) /* Declare the various hypercall operations. */ -#define HV_X64_HV_NOTIFY_LONG_SPIN_WAIT 0x0008 +#define HVCALL_NOTIFY_LONG_SPIN_WAIT 0x0008 +#define HVCALL_POST_MESSAGE 0x005c +#define HVCALL_SIGNAL_EVENT 0x005d#define HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE 0x00000001#define HV_X64_MSR_APIC_ASSIST_PAGE_ADDRESS_SHIFT 12
include/standard-headers/linux/input.h +1 -0
@@ -243,6 +243,7 @@ struct input_mask {#define BUS_GSC 0x1A#define BUS_ATARI 0x1B#define BUS_SPI 0x1C +#define BUS_RMI 0x1D/* * MT_TOOL types
include/standard-headers/linux/types.h +3 -2
@@ -1,2 +1,3 @@ -#include <stdint.h> -#include "qemu/compiler.h" +/* For QEMU all types are already defined via osdep.h, so this +* header does not need to do anything. +*/
include/standard-headers/linux/virtio_balloon.h +1 -1
@@ -51,7 +51,7 @@ struct virtio_balloon_config {#define VIRTIO_BALLOON_S_MINFLT 3/* Number of minor faults */ #define VIRTIO_BALLOON_S_MEMFREE 4/* Total amount of free memory */ #define VIRTIO_BALLOON_S_MEMTOT 5/* Total amount of memory */ -#define VIRTIO_BALLOON_S_AVAIL 6/* Amount of available memory in guest */ +#define VIRTIO_BALLOON_S_AVAIL 6/* Available memory as in /proc */ #define VIRTIO_BALLOON_S_NR 7/*
include/standard-headers/linux/virtio_blk.h +3 -3
@@ -43,10 +43,10 @@#ifndef VIRTIO_BLK_NO_LEGACY #define VIRTIO_BLK_F_BARRIER 0/* Does host support barriers? */ #define VIRTIO_BLK_F_SCSI 7/* Supports scsi command passthru */ -#define VIRTIO_BLK_F_WCE 9/* Writeback mode enabled after reset */ +#define VIRTIO_BLK_F_FLUSH 9/* Flush command supported */ #define VIRTIO_BLK_F_CONFIG_WCE 11/* Writeback mode available in config */ -/* Old (deprecated) name for VIRTIO_BLK_F_WCE. */ -#define VIRTIO_BLK_F_FLUSH VIRTIO_BLK_F_WCE +/* Old (deprecated) name for VIRTIO_BLK_F_FLUSH. */ +#define VIRTIO_BLK_F_WCE VIRTIO_BLK_F_FLUSH#endif /* !VIRTIO_BLK_NO_LEGACY */ #define VIRTIO_BLK_ID_BYTES 20/* ID string length */
linux-headers/asm-arm64/kvm.h +6 -0
@@ -94,6 +94,7 @@ struct kvm_regs {#define KVM_ARM_VCPU_POWER_OFF 0/* CPU is started in OFF state */ #define KVM_ARM_VCPU_EL1_32BIT 1/* CPU running a 32bit VM */ #define KVM_ARM_VCPU_PSCI_0_2 2/* CPU uses PSCI v0.2 */ +#define KVM_ARM_VCPU_PMU_V3 3/* Support guest PMUv3 */ struct kvm_vcpu_init {__u32 target;
@@ -204,6 +205,11 @@ struct kvm_arch_memory_slot {#define KVM_DEV_ARM_VGIC_GRP_CTRL 4#define KVM_DEV_ARM_VGIC_CTRL_INIT 0 +/* Device Control API on vcpu fd */ +#define KVM_ARM_VCPU_PMU_V3_CTRL 0 +#define KVM_ARM_VCPU_PMU_V3_IRQ 0 +#define KVM_ARM_VCPU_PMU_V3_INIT 1 +/* KVM_IRQ_LINE irq field index values */ #define KVM_ARM_IRQ_TYPE_SHIFT 24#define KVM_ARM_IRQ_TYPE_MASK 0xff
linux-headers/asm-powerpc/epapr_hcalls.h +2 -2
@@ -78,7 +78,7 @@#define EV_SUCCESS 0#define EV_EPERM 1/* Operation not permitted */ #define EV_ENOENT 2/* Entry Not Found */ -#define EV_EIO 3/* I/O error occured */ +#define EV_EIO 3/* I/O error occurred */ #define EV_EAGAIN 4/* The operation had insufficient * resources to complete and should be * retried
@@ -89,7 +89,7 @@#define EV_ENODEV 7/* No such device */ #define EV_EINVAL 8/* An argument supplied to the hcall was out of range or invalid */ -#define EV_INTERNAL 9/* An internal error occured */ +#define EV_INTERNAL 9/* An internal error occurred */ #define EV_CONFIG 10/* A configuration error was detected */ #define EV_INVALID_STATE 11/* The object is in an invalid state */ #define EV_UNIMPLEMENTED 12/* Unimplemented hypercall */
linux-headers/asm-powerpc/kvm.h +9 -0
@@ -333,6 +333,15 @@ struct kvm_create_spapr_tce {__u32 window_size; }; +/* for KVM_CAP_SPAPR_TCE_64 */ +struct kvm_create_spapr_tce_64 { +__u64 liobn; +__u32 page_shift; +__u32 flags; +__u64 offset;/* in pages */ +__u64 size;/* in pages */ +}; +/* for KVM_ALLOCATE_RMA */ struct kvm_allocate_rma {__u64 rma_size;
linux-headers/asm-x86/unistd_32.h +2 -0
@@ -375,5 +375,7 @@#define __NR_membarrier 375#define __NR_mlock2 376#define __NR_copy_file_range 377 +#define __NR_preadv2 378 +#define __NR_pwritev2 379#endif /* _ASM_X86_UNISTD_32_H */
linux-headers/asm-x86/unistd_64.h +2 -0
@@ -328,5 +328,7 @@#define __NR_membarrier 324#define __NR_mlock2 325#define __NR_copy_file_range 326 +#define __NR_preadv2 327 +#define __NR_pwritev2 328#endif /* _ASM_X86_UNISTD_64_H */
linux-headers/linux/kvm.h +11 -0
@@ -157,6 +157,7 @@ struct kvm_s390_skeys { struct kvm_hyperv_exit { #define KVM_EXIT_HYPERV_SYNIC 1 +#define KVM_EXIT_HYPERV_HCALL 2 __u32 type; union { struct {
@@ -165,6 +166,11 @@ struct kvm_hyperv_exit {__u64 evt_page;__u64 msg_page; } synic; +struct { +__u64 input; +__u64 result; +__u64 params[2 ]; + } hcall; } u; };
@@ -856,6 +862,9 @@ struct kvm_ppc_smmu_info {#define KVM_CAP_IOEVENTFD_ANY_LENGTH 122#define KVM_CAP_HYPERV_SYNIC 123#define KVM_CAP_S390_RI 124 +#define KVM_CAP_SPAPR_TCE_64 125 +#define KVM_CAP_ARM_PMU_V3 126 +#define KVM_CAP_VCPU_ATTRIBUTES 127#ifdef KVM_CAP_IRQ_ROUTING
@@ -1148,6 +1157,8 @@ struct kvm_s390_ucas_mapping {/* Available with KVM_CAP_PPC_ALLOC_HTAB */ #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32)#define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce) +#define KVM_CREATE_SPAPR_TCE_64 _IOW(KVMIO, 0xa8, \ + struct kvm_create_spapr_tce_64)/* Available with KVM_CAP_RMA */ #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma)/* Available with KVM_CAP_PPC_HTAB_FD */
linux-headers/linux/userfaultfd.h +1 -1
@@ -78,7 +78,7 @@ struct uffd_msg {__u64 reserved3; } reserved; } arg; -} __packed; +} __attribute__((packed));/* * Start at 0x12 and not at 0 to be more strict against bugs.
linux-headers/linux/vfio.h +90 -2
116 lines not on this page · raw message
linux-headers/linux/vhost.h +6 -0
@@ -126,6 +126,12 @@ struct vhost_memory {#define VHOST_SET_VRING_CALL _IOW(VHOST_VIRTIO, 0x21, struct vhost_vring_file)/* Set eventfd to signal an error */ #define VHOST_SET_VRING_ERR _IOW(VHOST_VIRTIO, 0x22, struct vhost_vring_file) +/* Set busy loop timeout (in us) */ +#define VHOST_SET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x23, \ + struct vhost_vring_state) +/* Get busy loop timeout (in us) */ +#define VHOST_GET_VRING_BUSYLOOP_TIMEOUT _IOW(VHOST_VIRTIO, 0x24, \ + struct vhost_vring_state)/* VHOST_NET specific defines */
Signature · 1 line
2.5.5