54c03c
From 1048f98e3606781696f1a81704235960f426519d Mon Sep 17 00:00:00 2001
54c03c
From: Peter Robinson <pbrobinson@gmail.com>
54c03c
Date: Wed, 27 Feb 2019 10:56:36 +0000
54c03c
Subject: [PATCH 04/13] ARMv7 only supports GICv2 so we need to explicitly
54c03c
 define it
54c03c
54c03c
Add the GIC version to the cpu features list to ensure we get the right GIC
54c03c
54c03c
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
54c03c
---
54c03c
 oz/Guest.py | 2 ++
54c03c
 1 file changed, 2 insertions(+)
54c03c
54c03c
diff --git a/oz/Guest.py b/oz/Guest.py
54c03c
index e3a5da5..4e74fe1 100644
54c03c
--- a/oz/Guest.py
54c03c
+++ b/oz/Guest.py
54c03c
@@ -465,6 +465,8 @@ class Guest(object):
54c03c
         if self.tdl.arch in ["x86_64"]:
54c03c
             oz.ozutil.lxml_subelement(features, "apic")
54c03c
             oz.ozutil.lxml_subelement(features, "pae")
54c03c
+        if self.tdl.arch in ["armv7l"]:
54c03c
+            oz.ozutil.lxml_subelement(features, "gic", attributes={'version': '2'})
54c03c
         # CPU
54c03c
         if self.tdl.arch in ["aarch64", "armv7l"] and self.libvirt_type == "kvm":
54c03c
             # Possibly related to RHBZ 1171501 - need host passthrough for aarch64 and arm with kvm
54c03c
-- 
54c03c
2.20.1
54c03c