WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Propose "xen_init()" call first thing in Xen drivers

To: "Hollis Blanchard" <hollisb@xxxxxxxxxx>
Subject: RE: [Xen-devel] Propose "xen_init()" call first thing in Xen drivers
From: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Date: Thu, 22 Sep 2005 13:53:39 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Matt Chapman <matthewc@xxxxxxxxxxxxxxx>
Delivery-date: Thu, 22 Sep 2005 20:51:29 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcW/sAxS2saO2GetR7SmmpAVy1ytBgAB0wxA
Thread-topic: [Xen-devel] Propose "xen_init()" call first thing in Xen drivers
> Oh, well, there's the problem: module_init(evtchn_init). That means 
> evtchn_init will be called in arbitrary (link) order, 
> intermingled with the 
> actual drivers (which are also using module_init).
> 
> evtchn_init() can be built in and made a subsys_initcall, or 
> there needs to be 
> an explicit module dependency: e.g. request_module("evtchn").
> 
> http://xenbits.xensource.com/ext/xenlinux-ia64-2.6.12.hg?cmd=f
> ile;filenode=769f15e75bbd990900b352a3f9d50562d9e399df;file=dri
> vers/xen/core/xenia64_init.c
> 
> As for xen_start_info in the above URL, why don't you make 
> sure arch code sets 
> that up before drivers are loaded? You can turn your existing 
> xen_init() into 
> an arch_initcall.

Thanks much for the ideas.  We will have a look at this
again (hopefully soon) but are currently broiling bigger
fish, so the current "workaround" is sufficient for now.

Dan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>