Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>
Index: qemu-fifoprio/linux-headers/linux/kvm.h
===================================================================
--- qemu-fifoprio.orig/linux-headers/linux/kvm.h
+++ qemu-fifoprio/linux-headers/linux/kvm.h
@@ -929,6 +929,7 @@ struct kvm_ppc_resize_hpt {
#define KVM_CAP_PPC_SMT_POSSIBLE 147
#define KVM_CAP_HYPERV_SYNIC2 148
#define KVM_CAP_HYPERV_VP_INDEX 149
+#define KVM_CAP_VCPU_RT_PRIO_HC 150
#ifdef KVM_CAP_IRQ_ROUTING
@@ -1355,6 +1356,8 @@ struct kvm_s390_ucas_mapping {
/* Available with KVM_CAP_S390_CMMA_MIGRATION */
#define KVM_S390_GET_CMMA_BITS _IOWR(KVMIO, 0xb8, struct
kvm_s390_cmma_log)
#define KVM_S390_SET_CMMA_BITS _IOW(KVMIO, 0xb9, struct kvm_s390_cmma_log)
+/* Available with KVM_CAP_VCPU_RT_PRIO_HC */
+#define KVM_SET_VCPU_RT_PRIO_HC _IOW(KVMIO, 0xba, struct
kvm_vcpu_rt_prio)
#define KVM_DEV_ASSIGN_ENABLE_IOMMU (1 << 0)
#define KVM_DEV_ASSIGN_PCI_2_3 (1 << 1)
Index: qemu-fifoprio/linux-headers/asm-x86/kvm.h
===================================================================
--- qemu-fifoprio.orig/linux-headers/asm-x86/kvm.h
+++ qemu-fifoprio/linux-headers/asm-x86/kvm.h
@@ -353,6 +353,11 @@ struct kvm_xcrs {
__u64 padding[16];
};
+struct kvm_vcpu_rt_prio {
+ __u32 enabled;
+ __u32 sched_priority;
+};
+
/* definition of registers in kvm_run */
struct kvm_sync_regs {
};
Index: qemu-fifoprio/linux-headers/linux/kvm_para.h
===================================================================
--- qemu-fifoprio.orig/linux-headers/linux/kvm_para.h
+++ qemu-fifoprio/linux-headers/linux/kvm_para.h
@@ -15,6 +15,7 @@
#define KVM_E2BIG E2BIG
#define KVM_EPERM EPERM
#define KVM_EOPNOTSUPP 95
+#define KVM_EINVAL EINVAL
#define KVM_HC_VAPIC_POLL_IRQ 1
#define KVM_HC_MMU_OP 2
@@ -25,6 +26,7 @@
#define KVM_HC_MIPS_EXIT_VM 7
#define KVM_HC_MIPS_CONSOLE_OUTPUT 8
#define KVM_HC_CLOCK_PAIRING 9
+#define KVM_HC_RT_PRIO 10
/*
* hypercalls use architecture specific