diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-07-06 08:20:40 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-07-20 12:02:17 -0300 |
commit | 4ec60c76d5ab513e375f17b043d2b9cb849adf6c (patch) | |
tree | a4abb8eb1c43984d259757a250312f629f32c7cb /hmp-commands.hx | |
parent | 7baef5cfea3d2271442fee602eb0b0c872b54b8e (diff) | |
download | qemu-4ec60c76d5ab513e375f17b043d2b9cb849adf6c.zip qemu-4ec60c76d5ab513e375f17b043d2b9cb849adf6c.tar.gz qemu-4ec60c76d5ab513e375f17b043d2b9cb849adf6c.tar.bz2 |
pc: cpu: Consolidate apic-id validity checks in pc_cpu_pre_plug()
Machine code knows about all possible APIC IDs so use that
instead of hack which does O(n^2) complexity duplicate
checks, interating over global CPUs list.
As result duplicate check is done only once with O(log n) complexity.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hmp-commands.hx')
0 files changed, 0 insertions, 0 deletions