summaryrefslogtreecommitdiffstats
path: root/linux-headers/linux
diff options
context:
space:
mode:
authorYi Min Zhao2016-11-09 14:30:50 +0100
committerCornelia Huck2017-01-20 10:02:02 +0100
commitdf8dd91b99ed7d27c1cf9a0e6283b2452192d9a1 (patch)
tree7840e9cf954459b59ea991c491d24cfecf50f1ee /linux-headers/linux
parents390x/pci: PCI multibus bridge handling (diff)
downloadqemu-df8dd91b99ed7d27c1cf9a0e6283b2452192d9a1.tar.gz
qemu-df8dd91b99ed7d27c1cf9a0e6283b2452192d9a1.tar.xz
qemu-df8dd91b99ed7d27c1cf9a0e6283b2452192d9a1.zip
s390x/pci: use hashtable to look up zpci via fh
After PCI multibus is supported, more than 32 PCI devices could be plugged. The current implementation of s390_pci_find_dev_by_fh() appears low performance if there's a huge number of PCI devices plugged. Therefore we introduce a hashtable using idx as key to store zpci device's pointer on account of translating fh to idx very easily. Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions