mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
c4f31a0a0c
commit
678e12cc90
3 changed files with 40 additions and 13 deletions
1
hw/pc.h
1
hw/pc.h
|
@ -162,4 +162,5 @@ void pci_piix4_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
|
|||
|
||||
void isa_ne2000_init(int base, qemu_irq irq, NICInfo *nd);
|
||||
|
||||
int cpu_is_bsp(CPUState *env);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue