All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] xend: Notify xend of udev hardware events
@ 2009-03-13 12:05 Yosuke Iwamatsu
  2009-03-13 13:45 ` Zhigang Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Yosuke Iwamatsu @ 2009-03-13 12:05 UTC (permalink / raw)
  To: xen-devel

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

Regards,
-----------------------
Yosuke Iwamatsu
        NEC Corporation

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 0/5] xend: Notify xend of udev hardware events
  2009-03-13 12:05 [PATCH 0/5] xend: Notify xend of udev hardware events Yosuke Iwamatsu
@ 2009-03-13 13:45 ` Zhigang Wang
  2009-03-16  5:31   ` Yosuke Iwamatsu
  0 siblings, 1 reply; 3+ messages in thread
From: Zhigang Wang @ 2009-03-13 13:45 UTC (permalink / raw)
  To: Yosuke Iwamatsu; +Cc: xen-devel

Yosuke Iwamatsu wrote:
> 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.
> 
we already have XendMonitor to do that. Is it right to add these patches?

> 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). 
> 
> Regards,
> -----------------------
> Yosuke Iwamatsu
>         NEC Corporation
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 0/5] xend: Notify xend of udev hardware events
  2009-03-13 13:45 ` Zhigang Wang
@ 2009-03-16  5:31   ` Yosuke Iwamatsu
  0 siblings, 0 replies; 3+ messages in thread
From: Yosuke Iwamatsu @ 2009-03-16  5:31 UTC (permalink / raw)
  To: zhigang.x.wang; +Cc: xen-devel

Zhigang Wang wrote:
> Yosuke Iwamatsu wrote:
>> 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.
>>
> we already have XendMonitor to do that. Is it right to add these patches?

XendMonitor is only used to fetch the usage statistics of some devices from
from procfs and is not suitable to monitor the configuration changes of
physical devices, I think. We may be able to implement in XendMonitor a
detection mechanism of physical device's hot-plugging by polling sysfs entries,
but that would take some amount of effort and I don't see any advantage to do it
instead of utilizing udev mechanism.

Thanks,
  -- Yosuke

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-16  5:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 12:05 [PATCH 0/5] xend: Notify xend of udev hardware events Yosuke Iwamatsu
2009-03-13 13:45 ` Zhigang Wang
2009-03-16  5:31   ` Yosuke Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.