summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index a05facd0db..5c56c3fe6c 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -67,9 +67,9 @@ of the following environment variables (in any order):
67 nographic - disable video console 67 nographic - disable video console
68 sdl - choose the SDL UI frontend 68 sdl - choose the SDL UI frontend
69 gtk - choose the Gtk UI frontend 69 gtk - choose the Gtk UI frontend
70 gl - enable virgl-based GL acceleration (also needs gtk option) 70 gl - enable virgl-based GL acceleration (also needs gtk or sdl options)
71 gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk option) 71 gl-es - enable virgl-based GL acceleration, using OpenGL ES (also needs gtk or sdl options)
72 egl-headless - enable headless EGL output; use vnc or spice to see it 72 egl-headless - enable headless EGL output; use vnc (via publicvnc option) or spice to see it
73 serial - enable a serial console on /dev/ttyS0 73 serial - enable a serial console on /dev/ttyS0
74 serialstdio - enable a serial console on the console (regardless of graphics mode) 74 serialstdio - enable a serial console on the console (regardless of graphics mode)
75 slirp - enable user networking, no root privileges is required 75 slirp - enable user networking, no root privileges is required
@@ -437,7 +437,12 @@ class BaseConfig(object):
437 self.qemu_opt_script += ' -nographic' 437 self.qemu_opt_script += ' -nographic'
438 self.kernel_cmdline_script += ' console=ttyS0' 438 self.kernel_cmdline_script += ' console=ttyS0'
439 elif arg == 'sdl': 439 elif arg == 'sdl':
440 self.qemu_opt_script += ' -display sdl' 440 if 'gl' in sys.argv[1:]:
441 self.qemu_opt_script += ' -vga virtio -display sdl,gl=on'
442 elif 'gl-es' in sys.argv[1:]:
443 self.qemu_opt_script += ' -vga virtio -display sdl,gl=es'
444 else:
445 self.qemu_opt_script += ' -display sdl'
441 elif arg == 'gtk': 446 elif arg == 'gtk':
442 if 'gl' in sys.argv[1:]: 447 if 'gl' in sys.argv[1:]:
443 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on' 448 self.qemu_opt_script += ' -vga virtio -display gtk,gl=on'