From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH] kvm tools: Print only serial output to the terminal Date: Thu, 11 Aug 2011 11:56:37 +0300 Message-ID: <1313052997.3456.8.camel@lappy> References: <1312969969-14433-1-git-send-email-levinsasha928@gmail.com> <4E42B44E.1050602@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Asias He , kvm@vger.kernel.org, mingo@elte.hu, gorcunov@gmail.com To: Pekka Enberg Return-path: Received: from mail-bw0-f46.google.com ([209.85.214.46]:64090 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754100Ab1HKI5j (ORCPT ); Thu, 11 Aug 2011 04:57:39 -0400 Received: by bke11 with SMTP id 11so822498bke.19 for ; Thu, 11 Aug 2011 01:57:37 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2011-08-10 at 19:45 +0300, Pekka Enberg wrote: > > On 08/10/2011 09:34 PM, Pekka Enberg wrote: > >> On Wed, 10 Aug 2011, Sasha Levin wrote: > >>> This patch changes the serial device to print only auxiliary output to > >>> the > >>> terminal. > >>> > >>> Doing so prevents printing output which the guest kernel never > >>> intended us > >>> to print and by printing it we wrote junk to the users terminal. > >>> > >>> Signed-off-by: Sasha Levin > >> > >> This doesn't seem to work for me. As soon as we switch to userspace, I > >> don't get any output from serial console. > > On Wed, Aug 10, 2011 at 7:39 PM, Asias He wrote: > > This works for. Pekka, did you enable something like: > > > > T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100 > > > > in guest's /etc/inittab. > > No I didn't but that's not really a solution to the problem. We can't > expect people to configure guest userspace for something as basic as > console. I tested it again with /bin/sh boot, and it still works fine here. Something is fishy in your kernel :) -- Sasha.