On Mon, Dec 17, 2018 at 01:30:08PM +0000, Paul Durrant wrote: > ...that maintains compatibility with existing Xen toolstacks. > > Xen toolstacks instantiate PV backends by simply writing information into > xenstore and expecting a backend implementation to be watching for this. > > This patch adds a new 'xen-backend' module to allow individual XenDevice > implementations to register create and destroy functions. The creator > will be called when a tool-stack instantiates a new backend in this way, > and the destructor will then be called after the resulting XenDevice > object is unrealized. > > To support this it is also necessary to add new watchers into the XenBus > implementation to handle enumeration of new backends and also destruction > of XenDevice-s when the toolstack sets the backend 'online' key to 0. > > NOTE: This patch only adds the framework. A subsequent patch will add a > creator function for xen-block devices. > > Signed-off-by: Paul Durrant <paul.durr...@citrix.com>
Reviewed-by: Anthony PERARD <anthony.per...@citrix.com> -- Anthony PERARD