WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] ioemu: fix sdl mode

To: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] ioemu: fix sdl mode
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: Fri, 17 Apr 2009 20:31:10 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 17 Apr 2009 05:32:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acm/WGNnQ5WE5LlDTNCItHA4cafU+w==
Thread-topic: [PATCH] ioemu: fix sdl mode
When I use "sdl=1 vnc=0" in hvm guest config file, qemu-dm would exit due to a 
de-reference to a NULL pointer. The regression is introduced by 
3793d85f111a0dfe055ca8ac17a9d1881af43240.
The attached patch fixes the issue.

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>

diff --git a/sdl.c b/sdl.c
index 39ff4e3..e0cd07b 100644
--- a/sdl.c
+++ b/sdl.c
@@ -198,7 +198,7 @@ static void do_sdl_resize(int new_width, int new_height, 
int bpp)
             opengl_enabled = 0;
             dcl->dpy_update = sdl_update;
             dcl->dpy_setdata = sdl_setdata;
-            do_sdl_resize(real_screen->w, real_screen->h, 
real_screen->format->BitsPerPixel);
+            do_sdl_resize(width, height, bpp);
             return;
         }
         fprintf(stderr, "Could not open SDL display\n");

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>