From patchwork Tue Oct 20 07:03:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 36440 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 1140EB7B79 for ; Tue, 20 Oct 2009 18:08:50 +1100 (EST) Received: from localhost ([127.0.0.1]:44122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N08pr-0001gp-8Y for incoming@patchwork.ozlabs.org; Tue, 20 Oct 2009 03:08:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N08lE-0000FK-QB for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:04:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N08lA-0000Bq-C0 for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:04:00 -0400 Received: from [199.232.76.173] (port=52017 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N08l9-0000Bg-Vy for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:03:56 -0400 Received: from mx20.gnu.org ([199.232.41.8]:11432) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N08l9-00068Z-62 for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:03:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N08l8-0003Zx-6x for qemu-devel@nongnu.org; Tue, 20 Oct 2009 03:03:54 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9K73r8q020970 for ; Tue, 20 Oct 2009 03:03:53 -0400 Received: from localhost (vpn-12-92.rdu.redhat.com [10.11.12.92]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9K73phE024488; Tue, 20 Oct 2009 03:03:52 -0400 From: Amit Shah To: qemu-devel@nongnu.org Date: Tue, 20 Oct 2009 12:33:01 +0530 Message-Id: <1256022182-15570-4-git-send-email-amit.shah@redhat.com> In-Reply-To: <1256022182-15570-3-git-send-email-amit.shah@redhat.com> References: <1256022182-15570-1-git-send-email-amit.shah@redhat.com> <1256022182-15570-2-git-send-email-amit.shah@redhat.com> <1256022182-15570-3-git-send-email-amit.shah@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Cc: Amit Shah Subject: [Qemu-devel] [PATCH 3/4] 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 --- 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; }