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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslog butxm

To: "MINAI Katsuhito" <minai@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslog butxm dmesg is not affected
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: 2006年7月11日 16:07:03 +0100
Cc: Mark Williamson <mark.williamson@xxxxxxxxxxxx>, Hans-Christian Armingeon <mog.johnny@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Delivery-date: 2006年7月11日 08:07:32 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <22361034.178.216.1152606871.squirrel@xxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <20060707170404.E3CC.MINAI@xxxxxxxxxxxxxx><8f6c63685e997067f1bf7a39d9372c64@xxxxxxxxxxxx><12021034.178.216.1152581316.squirrel@xxxxxxxxxxxxxxxxxxxxxxxx> <16abe03fcc7c287db04726221b99349a@xxxxxxxxxxxx> <22361034.178.216.1152606871.squirrel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 11 Jul 2006, at 09:34, MINAI Katsuhito wrote:
Please let me confirm the following for my understanding.
- Xen should return the index of the oldest character on the console
 ring when the index that the caller specified is older than
 the range of the console ring.
Yes, that is an out-of-range input index gets 'rounded up' to the first in-range index. I think that seems a sensible method for bootstrapping a caller with no knowledge about current ring indexes -- they'd pass zero as input and then get back information about the first valid index. Another way would be to have an input flag or unique input index value that means 'just get me characters from the first valid index'. I somewhat prefer the method I already described though.
- I think that Xen would return index position of "last" byte
 returned, not first byte.
Seems less natural to me, but we could do it either way. Clearly first can be computed from last, and vice versa. Also, keeping the facility to clear the console buffer seems sensible (so that 'xm dmesg' can continue to support the normal Linux dmesg -c option) -- but having a separate clear_console_ring dom0_op for that would be cleaner.
Thanks!
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: [PATCH] Mini-OS events handling cleanup , Steven Smith
Next by Date: Re: [Xen-devel] [PATCH] cleanup "struct xenbus_driver" , Keir Fraser
Previous by Thread: Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslog butxm dmesg is not affected , MINAI Katsuhito
Next by Thread: [Xen-devel] [PATCH] [2/4] put xen console message into syslog but xm dmesg is not affected , MINAI Katsuhito
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /