From 4c34897aed0721ed6ea88168aa45579787534e25 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Wed, 19 Oct 2016 14:05:36 +0200 Subject: [PATCH] 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 Reviewed-by: Eduardo Habkost Signed-off-by: Eduardo Habkost --- hw/intc/apic_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 30f2af01e6..ea3c8caef5 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -243,6 +243,7 @@ static void apic_reset_common(DeviceState *dev) bsp = s->apicbase & MSR_IA32_APICBASE_BSP; s->apicbase = APIC_DEFAULT_ADDRESS | bsp | MSR_IA32_APICBASE_ENABLE; + s->id = s->initial_apic_id; s->vapic_paddr = 0; info->vapic_base_update(s);