From patchwork Wed Oct 14 07:55:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 35926 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 68C7AB7B6F for ; Wed, 14 Oct 2009 18:57:06 +1100 (EST) Received: from localhost ([127.0.0.1]:51395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxyjH-0004bK-7V for incoming@patchwork.ozlabs.org; Wed, 14 Oct 2009 03:57:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mxyik-0004aE-Kb for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mxyig-0004Xa-Vb for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:30 -0400 Received: from [199.232.76.173] (port=40558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxyif-0004XR-V9 for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39210) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mxyif-0005kt-Ak for qemu-devel@nongnu.org; Wed, 14 Oct 2009 03:56:25 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9E7uNQj021244 for ; Wed, 14 Oct 2009 03:56:23 -0400 Received: from localhost (vpn-226-87.phx2.redhat.com [10.3.226.87]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9E7uLDX008785; Wed, 14 Oct 2009 03:56:22 -0400 From: Amit Shah To: qemu-devel@nongnu.org Date: Wed, 14 Oct 2009 13:25:47 +0530 Message-Id: <1255506947-22235-1-git-send-email-amit.shah@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Amit Shah Subject: [Qemu-devel] [PATCH] console: call qemu_chr_reset() in text_console_init X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org text_console_init is called as the initialiser function for the 'vc' char backend. This function doesn't call qemu_chr_reset(), that emits the OPENED event. This fixes the help text and initial prompt display when the monitor is started in its default options -- as a vc backend to sdl or vnc. Signed-off-by: Amit Shah --- This patch fixes the bug that gets exposed when my other char patches are applied (which are presently in Anthony's queue). console.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/console.c b/console.c index 9bbef59..a4e0d64 100644 --- a/console.c +++ b/console.c @@ -1403,6 +1403,7 @@ CharDriverState *text_console_init(QemuOpts *opts) text_console_opts[n_text_consoles] = opts; n_text_consoles++; + qemu_chr_reset(chr); return chr; }