From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpFp5-0004gW-SS for qemu-devel@nongnu.org; Mon, 04 May 2015 08:50:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpFp1-00079a-Iy for qemu-devel@nongnu.org; Mon, 04 May 2015 08:50:11 -0400 Received: from mail-wg0-f54.google.com ([74.125.82.54]:35880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpFp1-00078t-DK for qemu-devel@nongnu.org; Mon, 04 May 2015 08:50:07 -0400 Received: by wgen6 with SMTP id n6so148979985wge.3 for ; Mon, 04 May 2015 05:50:06 -0700 (PDT) From: Eric Auger Date: Mon, 4 May 2015 13:49:55 +0100 Message-Id: <1430743798-8839-2-git-send-email-eric.auger@linaro.org> In-Reply-To: <1430743798-8839-1-git-send-email-eric.auger@linaro.org> References: <1430743798-8839-1-git-send-email-eric.auger@linaro.org> Subject: [Qemu-devel] [RFC v2 1/4] linux-headers: Update KVM header for KVM-VFIO FORWARD/UNFORWARD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org, alex.williamson@redhat.com Cc: b.reynal@virtualopensystems.com, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, patches@linaro.org 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 --- 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