Skip to contentSkip to conversation

alert message from dom0 to domU

DISCUSSION Sanjam Garg 3 participants 3 messages Dec 23, 2006 – Dec 28, 2006

lore
Share & tools
lore
#1 lore raw
Quoted 4 lines · Sanjam Garg

Hi

I need to pass an alert message from a kernel module in dom0 to domU kernel(something like a reboot message). How can I do that?

Use xenstore. Take a look at linux-2.6-xen-sparse/drivers/xen/core/reboot.c which does exactly what you're looking for. The domU kernel module watches the appropriate path in the store, and then dom0 (in this case the tools, but equally easily the dom0 kernel) writes the message into that path, and the domU kernel watch is fired.

Ewan.

#2 lore raw
In reply to Sanjam Garg
Quoted 1 line

I need to pass an alert message from a kernel module in dom0 to domU kernel(something like a reboot message). How can I do that?

What sort of message are you trying to send?

Whatever you're doing, the answer will probably be XenStore ;-) But are you trying to send commands to the guest, or do you want to actually want to communicate some kind of textual message?

Cheers,
Mark