Skip to contentSkip to conversation

Sending messages from Xen to a domain with VIRQ_DEBUG

DISCUSSION Rami Rosen 2 participants 2 messages Sep 15, 2005

lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

Hello,

Is there a way to send messages (for debugging purposes) from Xen to a domain with some text?

I want to add "printk" messages in certain points in Xen for tracing and debugging purposes.

As I understand, when I add printk messages to Xen they will appear only in boot time on the terminal. After domain 0 is created and up, printk() messages
in Xen will not appear in /var/log/messages or on terminal.

I had tried to add in some point in Xen:

.........
for_each_vcpu(d,v)
send_guest_virq(v,VIRQ_DEBUG);
.....
When I reach this point in Xen , it generates the following:
in the syslog (of domain0)
...
netif_schedule_list:
kernel: ** End of netif_schedule_list **
...

(I assume that this is somehow connected to the call:
request_irq(bind_virq_to_irq(VIRQ_DEBUG),...
in netback.c but I don't know the exact origin of this message)

Is there a way to send a message from Xen to a domain with some chosen text ?

Regards,
Rami Rosen

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hi Rami,

Good to see you're having fun with the code ;-)

If you just want to log occasional events you might as well use printk. The printks won't appear on the console, as you say. They can either be captured from the serial line, or you can view them using the "xm dmesg" command.

Cheers,
Mark

Quoted 36 lines · Rami Rosen

Hello,

Is there a way to send messages (for debugging purposes) from Xen to a domain with some text?

I want to add "printk" messages in certain points in Xen for tracing and debugging purposes.

As I understand, when I add printk messages to Xen they will appear only in boot time on the terminal. After domain 0 is created and up, printk() messages
in Xen will not appear in /var/log/messages or on terminal.

I had tried to add in some point in Xen:

.........
for_each_vcpu(d,v)
send_guest_virq(v,VIRQ_DEBUG);
.....
When I reach this point in Xen , it generates the following:
in the syslog (of domain0)
...
netif_schedule_list:
kernel: ** End of netif_schedule_list **
...

(I assume that this is somehow connected to the call:
request_irq(bind_virq_to_irq(VIRQ_DEBUG),...
in netback.c but I don't know the exact origin of this message)

Is there a way to send a message from Xen to a domain with some chosen text ?

Regards,
Rami Rosen