diff options
author | Pavel Fedin <p.fedin@samsung.com> | 2015-07-31 15:23:22 +0300 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2015-09-19 08:10:12 +0200 |
commit | 6c76b37742d4db8176af37b667b5420727e79e2c (patch) | |
tree | 9c9e0df5adf4fdc513fb5bb8c6a0c0a949da7a2e /vl.c | |
parent | e1c8237df5395f6a453f18109bd9dd33fb2a397c (diff) | |
download | qemu-6c76b37742d4db8176af37b667b5420727e79e2c.zip qemu-6c76b37742d4db8176af37b667b5420727e79e2c.tar.gz qemu-6c76b37742d4db8176af37b667b5420727e79e2c.tar.bz2 |
qdev: Do not use slow [*] expansion for GPIO creation
Expansion of [*] suffix is very slow because index expansion is done using
trial and error strategy, starting every time from zero and retrying with
the next index until insertion succeeds. With large number of already added
properties this process takes huge amount of time (O(n^2) complexity).
Some architectures (like ARM) use very large amount of IRQ pins in interrupt
controller models. This flaw makes machine startup extremely slow
(~20 seconds for ARM64 with 32 CPUs). This patch decreases this time down to
~10 seconds.
Also in qdev_init_gpio_out_named() memset() is now called only once for the
whole array instead of per-cell cleaning
Signed-off-by: Pavel Fedin <p.fedin@samsung.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions