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] event notification

To: ravi kerur <rkerur@xxxxxxxxx>
Subject: Re: [Xen-devel] event notification
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Mon, 8 Mar 2010 11:47:29 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 09 Mar 2010 07:35:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <dfc283f41003061912g7a5de86dh5d29fb601ea101f8@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <dfc283f41003061912g7a5de86dh5d29fb601ea101f8@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.19 (2009-01-05)
On Sat, Mar 06, 2010 at 07:12:02PM -0800, ravi kerur wrote:
> Hi,
> 
> Is there a mechanism available in Xen such that a kernel module in dom0 can
> register to it and when a VM(domU) is installed or deleted or suspend or
> resumed kernel module in domU can send notification to its counterpart in
> dom0. I have looked into xenbus mechanism used by PV drivers and it won't
> work for us. Inputs appreciated.

You can listen on udev events and see when a vif device has been added.
Also you can add pieces to the dom0 kernel to send uevents when a device
is suspended and do something.

Attached is a simple program to listen to all uevents..

> 
> Thanks
> -RK

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

Attachment: listen.c
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>