[OE-core] [PATCH v2 1/2] runqemu: Change to use -device virtio-gpu-pci instead of -vga virtio

shohei.maruyama at cybertrust.co.jp shohei.maruyama at cybertrust.co.jp
Wed Aug 28 05:45:46 UTC 2019


If using qemu-system-aarch64 or qemu-system-arm with the options, an error
occured as follows:

  qemu-system-aarch64: Virtio VGA not available

this commit fixes the error by using -device virtio-gpu-pci instead of
-vga virtio.

Signed-off-by: Shohei Maruyama <shohei.maruyama at cybertrust.co.jp>
---
 scripts/runqemu | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/runqemu b/scripts/runqemu
index 19fd521cd9..28ecee97a7 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -398,11 +398,11 @@ class BaseConfig(object):
             elif arg == 'sdl':
                 self.qemu_opt_script += ' -display sdl'
             elif arg == 'gtk-gl':
-                self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'
+                self.qemu_opt_script += ' -device virtio-gpu-pci,virgl=on -display gtk,gl=on'
             elif arg == 'gtk-gl-es':
-                self.qemu_opt_script += ' -vga virtio -display gtk,gl=es'
+                self.qemu_opt_script += ' -device virtio-gpu-pci,virgl=on -display gtk,gl=es'
             elif arg == 'egl-headless':
-                self.qemu_opt_script += ' -vga virtio -display egl-headless'
+                self.qemu_opt_script += ' -device virtio-gpu-pci,virgl=on -display egl-headless'
                 # As runqemu can be run within bitbake (when using testimage, for example),
                 # we need to ensure that we run host pkg-config, and that it does not
                 # get mis-directed to native build paths set by bitbake.
-- 
2.23.0



More information about the Openembedded-core mailing list