[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] wating for backend changes (was Re: [PATCH v3 4/4] libxl: add support for vscsi)



On Fri, Apr 10, Olaf Hering wrote:

> How is new code supposed to wait for backend changes?
> 
> Right now there are two APIs for that:
> - libxl__wait_for_backend loops for a while until it returns an error.
> - libxl__ev_devstate_wait registers a watch and a timer.
> 
> 
> In case of pvscsi there are three variants:
> - new, can use libxl__wait_device_connection
> - reconfigure, can use both of the above
> - remove, may use DEFINE_DEVICE_REMOVE and its
>   libxl__initiate_device_remove
> 
> The reconfigure case has to wait for various states, depending on the
> state before the reconfiguration.

For the time being I used also polling via libxl__wait_for_backend.
Doing event driven reconfigure can be implemented, but only with quite
some effort.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.