diff options
author | Igor Mammedov <imammedo@redhat.com> | 2016-10-19 14:05:36 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2016-10-24 17:29:15 -0200 |
commit | 4c34897aed0721ed6ea88168aa45579787534e25 (patch) | |
tree | 6e3c9f6103f5d9d9608038ce0853acd4692d6578 /hw | |
parent | 33d7a288298f02df3eadd509735f0f75e3f80d73 (diff) | |
download | qemu-4c34897aed0721ed6ea88168aa45579787534e25.zip qemu-4c34897aed0721ed6ea88168aa45579787534e25.tar.gz qemu-4c34897aed0721ed6ea88168aa45579787534e25.tar.bz2 |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/intc/apic_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index 30f2af0..ea3c8ca 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); |