Re: [Qemu-devel] [PATCH] pci: Fix INTx routing notifier recursion

2013-03-07 Thread Michael S. Tsirkin
On Thu, Mar 07, 2013 at 11:29:19AM -0700, Alex Williamson wrote: > For some reason we recurse to fire the INTx routing notifier for each > child of a bus, for each possible device of a bus. That means that if > we add a root port, the notifier gets called for that bridge 256 > times. If we add an

[Qemu-devel] [PATCH] pci: Fix INTx routing notifier recursion

2013-03-07 Thread Alex Williamson
For some reason we recurse to fire the INTx routing notifier for each child of a bus, for each possible device of a bus. That means that if we add a root port, the notifier gets called for that bridge 256 times. If we add an upstream switch behind that root port, 256^2. But of course we need a d