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

[Xen-devel] Re: [PATCH] allow connecting to xenconsole from remote hosts

To: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] allow connecting to xenconsole from remote hosts
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 14 Sep 2006 15:26:46 +0100
Cc: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Anthony Liguori <anthony@xxxxxxxxxxxxx>, Orran Y Krieger <okrieg@xxxxxxxxxx>
Delivery-date: Thu, 14 Sep 2006 07:25:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060914111417.GK3425@xxxxxxxxxxxxxxxxxx>
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
Thread-index: AcbYCc6nDSsVOkP9EduN2wAX8io7RQ==
Thread-topic: [PATCH] allow connecting to xenconsole from remote hosts
User-agent: Microsoft-Entourage/11.2.5.060620


On 14/9/06 12:14, "Muli Ben-Yehuda" <muli@xxxxxxxxxx> wrote:

> Changes since last version:
> - get rid of the 'queue of messages', instead each queueu is a ring
>   buffer of characters that we read into and write from directly.

All our other ring buffers have free-running indexes (i.e., they do not wrap
to zero when they reach the end of the buffer). This makes it easier to
determine number of entries in use (it's 'producer minus consumer' -- that's
another thing, it's standard idiom for us to call the indexes producer (or
prod) and consumer (or cons)). We then mask the high-order bits when
actually indexing into the buffer.

 -- Keir





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