From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: [new PV device] Date: Tue, 15 Apr 2014 12:25:56 +0200 Message-ID: <534D0934.5050603@citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wa0Yy-0007md-OA for xen-devel@lists.xenproject.org; Tue, 15 Apr 2014 10:26:00 +0000 In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vincenzo Maffione , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On 14/04/14 17:45, Vincenzo Maffione wrote: > Hi, > I would like to design a new paravirtual device for Xen PV guests > (under Linux), > for research purposes. > This device should be a "simplification" of netfront/netback in that > the interface > with the domU/dom0 O.S. is not the normal TCP/IP stack, but something way > simpler (however, this is not so important w.r.t. my question). > > Looking at the netback code > linux:drivers/net/xen-netback/xenbus.c > I've run into some "hotplug scripts" support code. > The netfront code, on the other hand, has no hotplug-related code. > > I don't really understand what is the purpose of this hotplug support > (Is it something > related to the vif-* scripts?), but I'm wondering whether I can get > rid of this code for my > "simplified" device. This hooks were used by xend, which relies on udev for launching hotplug scripts. libxl launches scripts directly, so if you are adding a new device, and don't need xend compatibility, you can get rid of them AFAIK. Roger.