Don't use cpu_index as apic_id.
authorGleb Natapov <gleb@redhat.com>
Wed, 10 Jun 2009 12:40:48 +0000 (15:40 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Sun, 14 Jun 2009 00:19:22 +0000 (19:19 -0500)
commite719ed95f5aaa32ce563574284e0d67186f36cc5
treee70fc49775b9312023fec2130c3d9b685016ece1
parentb7ece203b608f903c0326ec8db95022d1d64d902
Don't use cpu_index as apic_id.

(patch is on top of "Apic creation should not depend on pci" series)

Currently cpu_index is used as cpu apic id on x86.  This is incorrect
since apic ids not have to be continuous (they can also encode cpu
hierarchy information). This patch uses cpuid_apic_id for initial apic id
value. For now cpuid_apic_id is set to be equal to cpu_index so behaviour
is fully backward compatible, but it allows us to add qemu option to
provide other values for cpu apic id.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/apic.c
hw/pc.c
hw/pc.h