diff options
| author | Igor Mammedov <imammedo@redhat.com> | 2016-06-24 16:27:00 +0200 |
|---|---|---|
| committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-07-20 12:02:19 -0300 |
| commit | 1dfe3282cf851dce186ab15b07225e5d8588b63f (patch) | |
| tree | 1a96b53914b8f18c52d716866697d852481da4e5 /hw/intc/omap_intc.c | |
| parent | 889211b18b8d0acc814fbbe01b986f07b229a8c9 (diff) | |
| download | focaccia-qemu-1dfe3282cf851dce186ab15b07225e5d8588b63f.tar.gz focaccia-qemu-1dfe3282cf851dce186ab15b07225e5d8588b63f.zip | |
apic: Drop APICCommonState.idx and use APIC ID as index in local_apics[]
local_apics[] is sized to contain all APIC ID supported in xAPIC mode, so use APIC ID as index in it instead of constantly increasing counter idx. Fixes error "apic initialization failed" when a CPU hotplugged and unplugged more times than there are free slots in local_apics[]. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Radim Krčmář <rkrcmar@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/intc/omap_intc.c')
0 files changed, 0 insertions, 0 deletions