From: Keir Fraser Subject: Re: [PATCH] allow connecting to xenconsole from remote hosts Date: Wed, 13 Sep 2006 15:08:48 +0100 Message-ID: References: <20060913135904.GG5723@rhun.haifa.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060913135904.GG5723@rhun.haifa.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Muli Ben-Yehuda Cc: Jimi Xenidis , xen-devel , Anthony Liguori , Orran Y Krieger List-Id: xen-devel@lists.xenproject.org On 13/9/06 14:59, "Muli Ben-Yehuda" wrote: >> You still have that message/queue struct stuff. Is it needed, especially now >> that noecho is gone? > > I need someplace to keep what we read from a source fd until the > destination fd becomes writable. The original code just assumed > everything is writable and wrote it immediately; this assumption may > not be correct when the destination fd is a socket. A character array would be more obvious. This will also allow an easy implementation of console logging in the future -- the character array will simply be an mmap'ed log file, where the log is rotated whenever the cursor reaches the end of the buffer array. -- Keir