WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] alert message from dom0 to domU

To: Sanjam Garg <sanjamg@xxxxxxxxx>
Subject: Re: [Xen-devel] alert message from dom0 to domU
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Sat, 23 Dec 2006 19:11:17 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 23 Dec 2006 11:11:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20061223184903.95570.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20061223184903.95570.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Sat, Dec 23, 2006 at 10:49:03AM -0800, Sanjam Garg wrote:

> 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.

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

<Prev in Thread] Current Thread [Next in Thread>