WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Console Daemon

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Console Daemon
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 03 Aug 2005 13:41:08 +0100
Cc: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Robert Read <robert@xxxxxxxxxxxxx>
Delivery-date: Wed, 03 Aug 2005 12:39:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Your message of "Wed, 03 Aug 2005 12:13:37 BST." <A95E2296287EAD4EB592B5DEEFCE0E9D28290A@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> It only really needs to be big enough to absorb all the messages before
> Linux's console buffering code comes up, which isn't very much,
> certainly <4KB.
> 
> My view is that we should continue using the same buffer once xenbus
> comes up, hence there should be a simple multiplexing protocol.  

The kernel will end up allocating a buffer per console anyway, usually
at least a page in size. May as well just make that buffer visible via
xenstore and have console daemon directly pull the bytes out of it.

This also avoids the need for framing infomation, so no packet-ising
of data within the console ring buffers, which also makes recovery and
suspend/resume somewhat easier (no need to resync ring indexes -- the
new/restarted daemon can just start reading out of the ring buffer
where the previous daemon left off with no potentially fragile
recover/restart protocol).

Bottom line: I'd like simple, correct and highly available console
ahead of features like multi-headed console driver or xenbus-enabled
console. 

 -- Keir

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>