Skip to content
  • Gleb Natapov's avatar
    Don't use cpu_index as apic_id. · 678e12cc
    Gleb Natapov authored
    
    
    (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: default avatarGleb Natapov <gleb@redhat.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    678e12cc