diff options
author | Yi Min Zhao <zyimin@linux.vnet.ibm.com> | 2016-11-09 21:30:50 +0800 |
---|---|---|
committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-01-20 10:02:02 +0100 |
commit | df8dd91b99ed7d27c1cf9a0e6283b2452192d9a1 (patch) | |
tree | 7840e9cf954459b59ea991c491d24cfecf50f1ee /kvm-stub.c | |
parent | 3fc92a24f333b48652a2373c296f641c04b08bae (diff) |
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 'kvm-stub.c')
0 files changed, 0 insertions, 0 deletions