]> Git Repo - qemu.git/commit - hw/pc.c
Don't use cpu_index as apic_id.
authorGleb Natapov <[email protected]>
Wed, 10 Jun 2009 12:40:48 +0000 (15:40 +0300)
committerAnthony Liguori <[email protected]>
Sun, 14 Jun 2009 00:19:22 +0000 (19:19 -0500)
commit678e12cc9054e8a9eafc43a5b4b65d335d6651d4
treee70fc49775b9312023fec2130c3d9b685016ece1
parentc4f31a0a0c1f44a5253f892fea4e711028021c66
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/apic.c
hw/pc.c
hw/pc.h
This page took 0.026215 seconds and 4 git commands to generate.