qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH v8 17/19] linux-headers: Update KVM headers from lin


From: Eric Auger
Subject: [Qemu-devel] [PATCH v8 17/19] linux-headers: Update KVM headers from linux-next tag ToBeFilled
Date: Sun, 30 Nov 2014 18:35:22 +0000

Syncup KVM related linux headers from linux-next tree using
scripts/update-linux-headers.sh.

Integrate updated KVM-VFIO API related to forwarded IRQ

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

diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index 12045a1..9f798ab 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -946,6 +946,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,
@@ -963,6 +966,13 @@ enum kvm_device_type {
        KVM_DEV_TYPE_MAX,
 };
 
+struct kvm_arch_forwarded_irq {
+        __u32 fd; /* file desciptor of the VFIO device */
+        __u32 index; /* VFIO device IRQ index */
+        __u32 subindex; /* VFIO device IRQ subindex */
+        __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]