From 9b9a0c8ab8557b9ab50efdc2c1d9a864d55db352 Mon Sep 17 00:00:00 2001
From: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Date: Thu, 28 Nov 2024 12:14:44 +0000
Subject: Add -device virtio-gpu-device

This adds -device virtio-gpu-device to the qemuarm and qemuarm64 machine templates.
It enables the flutter image to be tested.

Change-Id: I3aa787c840e3f816f936aeda2a48dcb9e1258478
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
---
 templates/machines/qemuarm.jinja2   | 2 +-
 templates/machines/qemuarm64.jinja2 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/machines/qemuarm.jinja2 b/templates/machines/qemuarm.jinja2
index 736b276..122a66e 100644
--- a/templates/machines/qemuarm.jinja2
+++ b/templates/machines/qemuarm.jinja2
@@ -10,7 +10,7 @@
 {%- set qemu_cpu = "cortex-a15" %}
 {%- set qemu_machine = "virt-2.11" %}
 {%- set qemu_memory = "2048" %}
-{%- set qemu_args = "-smp 2 -audiodev none,id=agl,out.channels=2,in.channels=1 -device ich9-intel-hda -device hda-micro,audiodev=agl -device usb-ehci -device virtio-rng-pci -device VGA,vgamem_mb=128,edid=on -device qemu-xhci -device usb-tablet -device usb-kbd" %}
+{%- set qemu_args = "-smp 4 -audiodev none,id=agl,out.channels=2,in.channels=1 -device ich9-intel-hda -device hda-micro,audiodev=agl -device usb-ehci -device virtio-rng-pci -device virtio-gpu-device -device VGA,vgamem_mb=128,edid=on -device qemu-xhci -device usb-tablet -device usb-kbd" %}
 {%- set qemu_cmdline = "console=ttyAMA0,115200 root=/dev/vda verbose earlyprintk systemd.log_color=false mem=2048M vmalloc=192M memblock=debug cma=160M " %}
 {%- set guestfs_interface = "virtio" %}
 {%- set rootfs_type = rootfs_type|default("rootvd") %}
diff --git a/templates/machines/qemuarm64.jinja2 b/templates/machines/qemuarm64.jinja2
index f6b7b11..2a036c1 100644
--- a/templates/machines/qemuarm64.jinja2
+++ b/templates/machines/qemuarm64.jinja2
@@ -10,7 +10,7 @@
 {%- set qemu_cpu = "cortex-a57" %}
 {%- set qemu_machine = "virt" %}
 {%- set qemu_memory = "4096" %}
-{%- set qemu_args = "-smp 2 -audiodev none,id=agl,out.channels=2,in.channels=1 -device ich9-intel-hda -device hda-micro,audiodev=agl -device usb-ehci -device virtio-rng-pci -device VGA,vgamem_mb=128,edid=on -device qemu-xhci -device usb-tablet -device usb-kbd " %}
+{%- set qemu_args = "-smp 4 -audiodev none,id=agl,out.channels=2,in.channels=1 -device ich9-intel-hda -device hda-micro,audiodev=agl -device usb-ehci -device virtio-rng-pci -device virtio-gpu-device -device VGA,vgamem_mb=128,edid=on -device qemu-xhci -device usb-tablet -device usb-kbd " %}
 {%- set qemu_cmdline = "console=ttyAMA0,115200 root=/dev/vda verbose mem=4096M systemd.log_color=false " %}
 {%- set guestfs_interface = "virtio" %}
 {%- set rootfs_type = rootfs_type|default("rootvd") %}
-- 
cgit 1.2.3-korg