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/
Home Products Support Community News


[Xen-devel] [PATCH 0/5] xend: Notify xend of udev hardware events

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0/5] xend: Notify xend of udev hardware events
From: Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx>
Date: Fri, 13 Mar 2009 21:05:52 +0900
Delivery-date: Fri, 13 Mar 2009 05:09:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (Windows/20081209)
There are several xen-api classes that represent physical devices,
such as PIF, PPCI and PSCSI. At the initialization step, xend creates
instances of these classes and stores them, so as to later expose
the host's available physical resources to remote clients.

The problem is that, when you hot-add of hot-remove a physical device
to of from the host, currently there is no way xend can detect that.
So the physical resource information kept in xend may become inconsistent
with the real state. 

This series of patches makes xend get notification of hardware changes
and update the physical resource information. Inside xend, we runs a thread
which opens a socket and listens to events of hardware configuration changes
from udev mechanism.

For now, these patches only support the configuration change of pci devices,
but it would be easy to add support for other types of physical devices
(e.g. net or scsi). 

Yosuke Iwamatsu
        NEC Corporation

Xen-devel mailing list

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