From: Marcelo Tosatti <mtosatti@redhat.com>
To: kvm@vger.kernel.org, qemu-devel@nongnu.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Subject: [Qemu-devel] [patch 1/2] qemu: sync linux-headers with KVM
Date: Thu, 21 Sep 2017 09:03:42 -0300 [thread overview]
Message-ID: <20170921120415.155548393@redhat.com> (raw)
In-Reply-To: 20170921120341.590850215@redhat.com
[-- Attachment #1: sync-linux-headers --]
[-- Type: text/plain, Size: 2000 bytes --]
Signed-off-by: Marcelo Tosatti <mtosatti@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
next prev parent reply other threads:[~2017-09-21 12:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-21 12:03 [Qemu-devel] [patch 0/2] support RT_PRIO_HC hypercall Marcelo Tosatti
2017-09-21 12:03 ` Marcelo Tosatti [this message]
2017-09-21 12:03 ` [Qemu-devel] [patch 2/2] qemu: kvm: " Marcelo Tosatti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170921120415.155548393@redhat.com \
--to=mtosatti@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).