qemu-e2k/include/hw/i386
Igor Mammedov 1dfe3282cf 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>
2016-07-20 12:02:19 -03:00
..
apic_internal.h apic: Drop APICCommonState.idx and use APIC ID as index in local_apics[] 2016-07-20 12:02:19 -03:00
apic-msidef.h
apic.h apic: move target-dependent definitions to cpu.h 2016-05-19 16:42:28 +02:00
ich9.h ich9: implement SCI_IRQ_SEL register 2016-06-29 14:03:48 +02:00
intel_iommu.h intel_iommu: large page support 2016-02-06 20:44:10 +02:00
ioapic_internal.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
ioapic.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
pc.h target-i386: Fill high bits of mtrr mask 2016-07-20 11:58:44 -03:00
topology.h pc: Add x86_topo_ids_from_apicid() 2016-07-20 11:58:44 -03:00