[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Hi keir

Thank you for advice.
I'd like to attempt to change xc_readconsolering() interface.

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.

- I think that Xen would return index position of "last" byte
  returned, not first byte.

Best regards,
Katsuhito Minai


On 11 Jul 2006, at 03:42 pm, Keir Fraser said:
>
> On 11 Jul 2006, at 02:28, MINAI Katsuhito wrote:
>
>> However, I also think that the "clear" interface is unnecessary.
>> I think that better solution is one of the following idea:
>> - modification to have independent read pointer of the buffer
>>   for each commands and daemons just like reading usual file.
>>   But, this might be difficult for hypervisor.
>
> Yes, this would be good. The caller could pass a start index and a
> length. Xen then returns characters from that index, up to length bytes
> (if available). If the given index is too far behind Xen's producer
> index, Xen would provide bytes from index position (producer -
> ring_size). In either case Xen would return index position of first
> byte returned.
>
>   -- Keir



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.