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

[Xen-devel] Re: [PATCH] pv-ops: register xen pci notifier

To: "Han, Weidong" <weidong.han@xxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] pv-ops: register xen pci notifier
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 29 Jul 2009 10:27:59 -0700
Cc: "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "'linux-pci@xxxxxxxxxxxxxxx'" <linux-pci@xxxxxxxxxxxxxxx>, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, "'jbarnes@xxxxxxxxxxxxxxxx'" <jbarnes@xxxxxxxxxxxxxxxx>, "'Keir.Fraser@xxxxxxxxxxxxx'" <Keir.Fraser@xxxxxxxxxxxxx>
Delivery-date: Wed, 29 Jul 2009 10:28:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <715D42877B251141A38726ABF5CABF2C05481C2352@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <1248659808-22198-1-git-send-email-weidong.han@xxxxxxxxx> <4A6F3F54.9030601@xxxxxxxx> <715D42877B251141A38726ABF5CABF2C05481C2352@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2
On 07/28/09 18:33, Han, Weidong wrote:
> register_xen_pci_notifier must be executed after PCI subsystem. I think 
> fs_initcall is the suitable initcall achieve it. 
>   

Yes, that's a bit awkward.  It requires pci_bus_type to have been
registered/initialized with bus_register() before you can register a
notifier on it.  Its a pity it couldn't be rearranged so that you can
register the notifier at any time.

    J

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