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


Re: [Xen-devel] Is it possible to add new device type "my_device" like "

To: Wei Liu <liuw@xxxxxxxxx>
Subject: Re: [Xen-devel] Is it possible to add new device type "my_device" like "vif/vbd/..." on XEN
From: veerasena reddy <veeruyours@xxxxxxxxx>
Date: Thu, 14 Jul 2011 12:02:58 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 13 Jul 2011 23:34:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=y3JHhfPe5zCar2CsQVCrIXUEAXTZHLDw619bZ1vaCgc=; b=H/rx/hEYKVkecXuzNRKv+36UdQWCGLek3Pn9Q6rRyMsr1Ajb5KHlJd9cEPwNKij9+3 2MQUYiTAlidnN5xI0/H71GyBcvfWMfnFGs5/Z3p4nAbfuMlI7GqS2kkYnBdKjKQgg88Q l7Iincj4oBdGrQJA0cGx8avqCkbwoxw3El+cU=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAOsiSVUPb-Vs06Fb5PwensxHC1oF-1CjjCHvJ4pcSiaairXauQ@xxxxxxxxxxxxxx>
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>
References: <CA+u7XGgSS2TPESpzc+K1pkMgJhhQJw8sCedZykY7jwX8GNxPDg@xxxxxxxxxxxxxx> <CAOsiSVUPb-Vs06Fb5PwensxHC1oF-1CjjCHvJ4pcSiaairXauQ@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
That's a great input. Thank you very much.
I will try it.

Thanks & Regards,

On Thu, Jul 14, 2011 at 11:31 AM, Wei Liu <liuw@xxxxxxxxx> wrote:
On Thu, Jul 14, 2011 at 1:20 PM, veerasena reddy <veeruyours@xxxxxxxxx> 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.


> Thanks & Regards,
> VSR.
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>