Patchwork qemu script: explicitly set 32 bit depth for x86-64

login
register
mail settings
Submitter Alexandru DAMIAN
Date April 9, 2013, 3:33 p.m.
Message ID <1365521585-12785-1-git-send-email-alexandru.damian@intel.com>
Download mbox | patch
Permalink /patch/47725/
State Accepted
Commit 6719400533453d0df482ef6e7bb347491e8a3e2b
Headers show

Comments

Alexandru DAMIAN - April 9, 2013, 3:33 p.m.
From: Alexandru DAMIAN <alexandru.damian@intel.com>

This patch is the same as 6c22c591374d258228f74814cded34a24b4bf2d3,
but for x86-64 targets which exhibit the same problem.

Qemu update from 1.2 to 1.4 now allows for 16bit depth in guests,
whereby previously only 32bit depth was supported. However,
the new support is broken, so we force 32bit depth in all cases.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 scripts/runqemu-internal |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index e8191d1..c7e4c5c 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -349,7 +349,7 @@  if [ "$MACHINE" = "qemux86-64" ]; then
     QEMU=qemu-system-x86_64
     QEMU_UI_OPTIONS="$QEMU_UI_OPTIONS -vga vmware"
     if [ "$FSTYPE" = "ext3" -o "$FSTYPE" = "btrfs" ]; then
-        KERNCMDLINE="vga=0 root=$DROOT rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
+        KERNCMDLINE="vga=0 uvesafb.mode_option=640x480-32 root=$DROOT rw mem=$QEMU_MEMORY $KERNEL_NETWORK_CMD"
         QEMUOPTIONS="$QEMU_NETWORK_CMD $ROOTFS_OPTIONS $QEMU_UI_OPTIONS"
     fi
     if [ "$FSTYPE" = "nfs" ]; then