veerasena reddy
2011-Jul-14 05:20 UTC
[Xen-devel] Is it possible to add new device type "my_device" like "vif/vbd/..." on XEN
Hi, I am working on an experiment to share a crypto processing offload device to multiple VMs (Pv-on-HVM). For this, I am looking to develop frontend and backend drivers similar to netfront and netback. I want to use different device type (may be "vcrypt") similar to "vif/vbd" Is it possible to add my own device types on XEN? If so, Could you please suggest how to do? Thanks & Regards, VSR. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Wei Liu
2011-Jul-14 06:01 UTC
Re: [Xen-devel] Is it possible to add new device type "my_device" like "vif/vbd/..." on XEN
On Thu, Jul 14, 2011 at 1:20 PM, veerasena reddy <veeruyours@gmail.com> wrote:> Hi, > > I am working on an experiment to share a crypto processing offload device to > multiple VMs (Pv-on-HVM). > For this, I am looking to develop frontend and backend drivers similar to > netfront and netback. > I want to use different device type (may be "vcrypt") similar to "vif/vbd" > > Is it possible to add my own device types on XEN? > If so, Could you please suggest how to do? >Yes, it is possible to do so. You can use libxl to prepare Xenstore entries for you. Please refer to libxl_device.c:libxl__device_generic_add, you may also find other functions in libxl_device.c interesting. Of course, you also need to design proper configuration syntax for your devices. In the front end and back end, you can write xenbus drivers with corresponding IDs to discover your devices. You can refer to existing drivers for more information. Hope this helps. Wei.> Thanks & Regards, > VSR. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
veerasena reddy
2011-Jul-14 06:32 UTC
Re: [Xen-devel] Is it possible to add new device type "my_device" like "vif/vbd/..." on XEN
That''s a great input. Thank you very much. I will try it. Thanks & Regards, VSR. On Thu, Jul 14, 2011 at 11:31 AM, Wei Liu <liuw@liuw.name> wrote:> On Thu, Jul 14, 2011 at 1:20 PM, veerasena reddy <veeruyours@gmail.com> > wrote: > > Hi, > > > > I am working on an experiment to share a crypto processing offload device > to > > multiple VMs (Pv-on-HVM). > > For this, I am looking to develop frontend and backend drivers similar to > > netfront and netback. > > I want to use different device type (may be "vcrypt") similar to > "vif/vbd" > > > > Is it possible to add my own device types on XEN? > > If so, Could you please suggest how to do? > > > > Yes, it is possible to do so. > > You can use libxl to prepare Xenstore entries for you. Please refer to > libxl_device.c:libxl__device_generic_add, you may also find other > functions in libxl_device.c interesting. Of course, you also need to > design proper configuration syntax for your devices. > > In the front end and back end, you can write xenbus drivers with > corresponding IDs to discover your devices. You can refer to existing > drivers for more information. > > Hope this helps. > > Wei. > > > Thanks & Regards, > > VSR. > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel