MINAI Katsuhito
2006-Jul-12 08:30 UTC
Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslogbutxm dmesg is not affected
Hi Keir, On 12 Jul 2006, at 12:07 am, Keir Fraser said:> > - 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 for your advice. If Xen return the index of the ''first'' byte, it seems to return the same value when an out-of-range index is specified. But in out-of-range case, Xen give the caller no console message. I understood that the Xen interface became simple than returning the ''last'' byte. Best regards, Katsuhito Minai _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Jul-12 08:35 UTC
Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslogbutxm dmesg is not affected
On 12 Jul 2006, at 09:30, MINAI Katsuhito wrote:> Thanks for your advice. > If Xen return the index of the ''first'' byte, it seems to return > the same value when an out-of-range index is specified. > But in out-of-range case, Xen give the caller no console message. > I understood that the Xen interface became simple than returning > the ''last'' byte.Let''s see how it looks in the patch. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Akio Takebe
2006-Jul-12 08:49 UTC
Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslogbutxm dmesg is not affected
Hi, Keir I think xen need to have a pointer of xenlogd. In the case of this implementation, because xenlogd manage the pointer to read dmesg, if xenlogd restart, xenlogd read the same log and write the same log into /var/log/messages. What do you think about this? Best Regards, Akio Takebe> >On 12 Jul 2006, at 09:30, MINAI Katsuhito wrote: > >> Thanks for your advice. >> If Xen return the index of the ''first'' byte, it seems to return >> the same value when an out-of-range index is specified. >> But in out-of-range case, Xen give the caller no console message. >> I understood that the Xen interface became simple than returning >> the ''last'' byte. > >Let''s see how it looks in the patch. > > -- Keir_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Jul-12 09:24 UTC
Re: [Xen-devel] [PATCH] [1/4] put xen console message into syslogbutxm dmesg is not affected
On 12 Jul 2006, at 09:49, Akio Takebe wrote:> I think xen need to have a pointer of xenlogd. > In the case of this implementation, > because xenlogd manage the pointer to read dmesg, > if xenlogd restart, xenlogd read the same log > and write the same log into /var/log/messages. > > What do you think about this?Could it be stored in a file, loaded when xenlogd starts and zapped on system startup? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel