From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJayU-0005Bu-QI for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:25:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJayS-0005BF-2V for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:25:17 -0400 Received: from [199.232.76.173] (port=37566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJayR-0005BC-OW for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:25:15 -0400 Received: from e3.ny.us.ibm.com ([32.97.182.143]:51776) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KJayR-0005fM-Ce for qemu-devel@nongnu.org; Thu, 17 Jul 2008 17:25:15 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e3.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m6HLK83b026829 for ; Thu, 17 Jul 2008 17:20:08 -0400 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m6HLK71f189078 for ; Thu, 17 Jul 2008 17:20:07 -0400 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m6HLK7C0024790 for ; Thu, 17 Jul 2008 17:20:07 -0400 From: Anthony Liguori Date: Thu, 17 Jul 2008 16:19:36 -0500 Message-Id: <1216329580-20804-2-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1216329580-20804-1-git-send-email-aliguori@us.ibm.com> References: <1216329580-20804-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 2/6] kvm: qemu: force screen resize if a display buffer does not exist Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori From: Avi Kivity Signed-off-by: Avi Kivity Signed-off-by: Anthony Liguori diff --git a/console.c b/console.c index 061135f..055a3f1 100644 --- a/console.c +++ b/console.c @@ -1334,7 +1334,8 @@ CharDriverState *text_console_init(DisplayState *ds, const char *p) void qemu_console_resize(QEMUConsole *console, int width, int height) { - if (console->g_width != width || console->g_height != height) { + if (console->g_width != width || console->g_height != height + || !console->ds->data) { console->g_width = width; console->g_height = height; if (active_console == console) {