[lxc-devel] [lxd/master] lxd/drivers/qemu: Use gic-version=max on aarch64

stgraber on Github lxc-bot at linuxcontainers.org
Tue Sep 8 14:18:27 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 582 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200908/6bd0c0fa/attachment.bin>
-------------- next part --------------
From 30615ded7ed09501388b14c52e52855dc9173786 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 8 Sep 2020 10:17:17 -0400
Subject: [PATCH] lxd/drivers/qemu: Use gic-version=max on aarch64
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Despite max and host supposedly being equivalent when in KVM mode, on a
limited number of platforms, host fails to fallback to 2 when no kernel
irqchip support is detected whereas max will properly select 2 in such
cases.

Signed-off-by: St├ęphane Graber <stgraber at ubuntu.com>
---
 lxd/instance/drivers/driver_qemu_templates.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/instance/drivers/driver_qemu_templates.go b/lxd/instance/drivers/driver_qemu_templates.go
index db11794313..59a043c128 100644
--- a/lxd/instance/drivers/driver_qemu_templates.go
+++ b/lxd/instance/drivers/driver_qemu_templates.go
@@ -14,7 +14,7 @@ type = "q35"
 {{end -}}
 {{if eq .architecture "aarch64" -}}
 type = "virt"
-gic-version = "host"
+gic-version = "max"
 {{end -}}
 {{if eq .architecture "ppc64le" -}}
 type = "pseries"


More information about the lxc-devel mailing list