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: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] event notification
From: ravi kerur <rkerur@xxxxxxxxx>
Date: Wed, 10 Mar 2010 15:20:43 -0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Wed, 10 Mar 2010 15:21:33 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=P3V4K0+DFMu3uDZZ9tN3xr1rxmQ076sFyerS2Jv7fHE=; b=XaG6ct3oJTk4NdRiGLLCgKC/zKggLEacuzHCS+uNP+UId/CCnQ9mS4uBVeXdErbNyl 7H6s5C7Om+dOMlNisxwse5YT4B79ppIAfVDiipTdT7/wxS+JcEWMAvknX6aKfpNc+bBp xNiYDMlngIchLmClh2eL1A/2gdktVVu8NJWnQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ows+mAqH2B3GuPRO8OnNq44ADwtiGSLnWyUKlitP0rxi3v9x3Li6YesjfT47SWGj9S KrPfA6fIeZDAEqc+5W4GQA/g7yrG1doTh386D3V6UZ3W4TkLrP+8CXNjmaRSJicL3YqY FkwVvzEZam5flIlXW1yLo32b9u/a6THgvn8vY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1268237356.11737.70451.camel@xxxxxxxxxxxxxxxxxxxxxx>
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> <20100308164727.GA4568@xxxxxxxxxxxxxxxxxxx> <1268237356.11737.70451.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks Ian and Konrad. I thought monitoring udev events or xen store watch can be done from user-level apps. I am wondering can they be used from kernel modules as well?

Thanks
-RK

On Wed, Mar 10, 2010 at 8:09 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
On Mon, 2010-03-08 at 16:47 +0000, Konrad Rzeszutek Wilk wrote:
> 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..

Also if you are specifically interested in domain create/destruction
(from the hypervisors PoV) then I think you can add a xenstore watch on
"@releaseDomain" and "@introduceDomain".

As far as the hypervisor is concerned things like migration or
suspend/resume are just domain creation or destruction, the "illusion"
of anything more is provided by the tools.

If you are interested in the creation/suspension/migration/etc of
domains at the toolstack level then it depends which toolstack you are
targeting.



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