Skip to contentSkip to conversation

put xen console message into syslogbutxm dmesg is not affected

PATCH MINAI Katsuhito 3 participants 4 messages Jul 12, 2006

lore
Share & tools
lore
#0 lore raw

Hi Keir,

Quoted 10 lines · Keir Fraser
Quoted 2 lines

- 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

#1 lore raw
Quoted 6 lines · MINAI Katsuhito

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

#2 lore raw

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

Quoted 13 lines · MINAI Katsuhito
Quoted 7 lines

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

#3 lore raw
Quoted 7 lines · Akio Takebe

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