pc: apic_common: Restore APIC ID to initial ID on reset
APIC ID should be restored to initial APIC ID state after Reset and Power-On. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
33d7a28829
commit
4c34897aed
|
@ -243,6 +243,7 @@ static void apic_reset_common(DeviceState *dev)
|
||||||
|
|
||||||
bsp = s->apicbase & MSR_IA32_APICBASE_BSP;
|
bsp = s->apicbase & MSR_IA32_APICBASE_BSP;
|
||||||
s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE;
|
s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE;
|
||||||
|
s->id = s->initial_apic_id;
|
||||||
|
|
||||||
s->vapic_paddr = 0;
|
s->vapic_paddr = 0;
|
||||||
info->vapic_base_update(s);
|
info->vapic_base_update(s);
|
||||||
|
|
Loading…
Reference in a new issue