qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC v2 1/4] linux-headers: Update KVM header for KVM-VFIO


From: Eric Auger
Subject: [Qemu-devel] [RFC v2 1/4] linux-headers: Update KVM header for KVM-VFIO FORWARD/UNFORWARD
Date: Mon, 4 May 2015 13:49:55 +0100

Integrate updated KVM-VFIO API related to forwarded IRQ

Update the kvm header according to the header found in
http://git.linaro.org/people/eric.auger/linux.git
branch 4.1-rc1_forward

Signed-off-by: Eric Auger <address@hidden>
---
 linux-headers/linux/kvm.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index b96d978..95fea92 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -999,6 +999,9 @@ struct kvm_device_attr {
 #define  KVM_DEV_VFIO_GROUP                    1
 #define   KVM_DEV_VFIO_GROUP_ADD                       1
 #define   KVM_DEV_VFIO_GROUP_DEL                       2
+#define  KVM_DEV_VFIO_DEVICE                   2
+#define   KVM_DEV_VFIO_DEVICE_FORWARD_IRQ                      1
+#define   KVM_DEV_VFIO_DEVICE_UNFORWARD_IRQ                    2
 
 enum kvm_device_type {
        KVM_DEV_TYPE_FSL_MPIC_20        = 1,
@@ -1018,6 +1021,15 @@ enum kvm_device_type {
        KVM_DEV_TYPE_MAX,
 };
 
+struct kvm_vfio_dev_irq {
+       __u32   argsz;          /* structure length */
+       __u32   fd;             /* file descriptor of the VFIO device */
+       __u32   index;          /* VFIO device IRQ index */
+       __u32   start;          /* start of subindex range */
+       __u32   count;          /* size of subindex range */
+       __u32   gsi[];          /* gsi, ie. virtual IRQ number */
+};
+
 /*
  * ioctls for VM fds
  */
-- 
1.8.3.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]