Received: from eggs.gnu.org ([140.186.70.92]:45998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcDjP-0000XA-Fl for qemu-devel@nongnu.org; Thu, 30 Jun 2011 05:40:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcDjN-0007YC-TP for qemu-devel@nongnu.org; Thu, 30 Jun 2011 05:40:19 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:47317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcDjN-0007Y8-Cz for qemu-devel@nongnu.org; Thu, 30 Jun 2011 05:40:17 -0400 From: Chun Yan Liu Date: Thu, 30 Jun 2011 17:39:59 +0800 References: <1309417722-11424-1-git-send-email-cyliu@novell.com> <58A6676B-5E1B-49E9-B315-E84C46D2E1D1@suse.de> In-Reply-To: <58A6676B-5E1B-49E9-B315-E84C46D2E1D1@suse.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106301739.59597.cyliu@novell.com> Subject: Re: [Qemu-devel] [PATCH V3] Support logging xen-guest console List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-devel@nongnu.org On Thursday, June 30, 2011 03:58:57 PM Alexander Graf wrote: > On 30.06.2011, at 09:08, Chunyan Liu wrote: > > Add code to support logging xen-domU console, as what xenconsoled does. > > To enable logging, set environment variable XENCONSOLED_TRACE=guest and > > XENCONSOLED_LOGDIR=, log file will be saved in > > . > > In fact, this whole thing looks as if you're merely trying to reimplement > "tee" on the xenconsole output. Wouldn't it make more sense to do this in > the char layer? So we could do: > > -xenconsole tee:stdio,file:/tmp/xen.log > > or similar? That's probably a lot more useful than a random Xen specific > hack. > Thanks, Alex. It IS something like "tee". But IMO, change in xen_console.c and change in char layer are just different time points, do not have essential difference. Change in xen_console.c is trying to backup output data into log file before sending to char device, change in char device is trying to dupicate data from char device to log file. Correct me if I'm wrong. Thanks, Chunyan