We are using the explicit VGIC_CTRL_INIT ioctl, which was introduced
with 3.19-rc1, so at the moment we need to pull this patch from
upstream Linux. This patch can be reverted as soon as a newer Linux
tree is merged into kvmtool.

Signed-off-by: Andre Przywara <[email protected]>
---
 tools/kvm/arm/include/arm-common/gic.h |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/kvm/arm/include/arm-common/gic.h 
b/tools/kvm/arm/include/arm-common/gic.h
index 5a36f2c..5487125 100644
--- a/tools/kvm/arm/include/arm-common/gic.h
+++ b/tools/kvm/arm/include/arm-common/gic.h
@@ -21,6 +21,11 @@
 #define GIC_MAX_CPUS                   8
 #define GIC_MAX_IRQ                    255
 
+#ifndef KVM_DEV_ARM_VGIC_GRP_CTRL
+#define KVM_DEV_ARM_VGIC_GRP_CTRL      4
+#define   KVM_DEV_ARM_VGIC_CTRL_INIT   0
+#endif
+
 struct kvm;
 
 int gic__alloc_irqnum(void);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to