218e99
From 5bf6f353b202b4b3cfcf7c570dddf0557f39480c Mon Sep 17 00:00:00 2001
218e99
From: Alex Williamson <alex.williamson@redhat.com>
218e99
Date: Tue, 5 Nov 2013 17:51:05 +0100
218e99
Subject: [PATCH 20/25] linux-headers: Update for KVM-VFIO device
218e99
218e99
RH-Author: Alex Williamson <alex.williamson@redhat.com>
218e99
Message-id: <20131105175105.19705.91817.stgit@bling.home>
218e99
Patchwork-id: 55442
218e99
O-Subject: [RHEL7 qemu-kvm PATCH 1/2] linux-headers: Update for KVM-VFIO device
218e99
Bugzilla: 1025474
218e99
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
218e99
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
218e99
218e99
Bugzilla: 1025474
218e99
Upstream: Posted - http://lists.nongnu.org/archive/html/qemu-devel/2013-11/msg00090.html
218e99
218e99
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
218e99
---
218e99
 linux-headers/linux/kvm.h |    4 ++++
218e99
 1 file changed, 4 insertions(+)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 linux-headers/linux/kvm.h |    4 ++++
218e99
 1 files changed, 4 insertions(+), 0 deletions(-)
218e99
218e99
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
218e99
index 01bf15b..e32ef4a 100644
218e99
--- a/linux-headers/linux/kvm.h
218e99
+++ b/linux-headers/linux/kvm.h
218e99
@@ -840,6 +840,10 @@ struct kvm_device_attr {
218e99
 #define KVM_DEV_TYPE_FSL_MPIC_20	1
218e99
 #define KVM_DEV_TYPE_FSL_MPIC_42	2
218e99
 #define KVM_DEV_TYPE_XICS		3
218e99
+#define KVM_DEV_TYPE_VFIO		4
218e99
+#define  KVM_DEV_VFIO_GROUP			1
218e99
+#define   KVM_DEV_VFIO_GROUP_ADD			1
218e99
+#define   KVM_DEV_VFIO_GROUP_DEL			2
218e99
 
218e99
 /*
218e99
  * ioctls for VM fds
218e99
-- 
218e99
1.7.1
218e99