pc: apic_common: Reset APIC ID to initial ID when switching into x2APIC mode
commitfacb07cd2a3d19ebe2e15380e906eed7d5f7063c
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Oct 2016 12:05:37 +0000 (19 14:05 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 24 Oct 2016 19:29:15 +0000 (24 17:29 -0200)
treec6ace8206da18cfd5d2d56bbfe38d6cc74edc2ba
parent4c34897aed0721ed6ea88168aa45579787534e25
pc: apic_common: Reset APIC ID to initial ID when switching into x2APIC mode

SDM: x2APIC State Transitions:
         State Changes From xAPIC Mode to x2APIC Mode
"
Any APIC ID value written to the memory-mapped
local APIC ID register is not preserved
"

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/intc/apic_common.c