pci: Fix INTx routing notifier recursion
commite5368f0da75c1c668e85398aa930be2f4273e684
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 7 Mar 2013 18:29:19 +0000 (7 11:29 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Mar 2013 19:02:17 +0000 (26 21:02 +0200)
treeda955bc5d5c8b71c26268d6ada75dca01846aa03
parent600d05b9aa4b4d23775fc17968dd6b581928001d
pci: Fix INTx routing notifier recursion

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 downstream switch, 256^3.  This starts to be
noticeable.  Stop the insanity.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci/pci.c