Received: from eggs.gnu.org ([2001:4830:134:3::10]:38138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bylIi-0006Be-Q4 for qemu-devel@nongnu.org; Mon, 24 Oct 2016 15:52:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bylIh-0002Ii-QR for qemu-devel@nongnu.org; Mon, 24 Oct 2016 15:52:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34140) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bylIh-0002IW-KU for qemu-devel@nongnu.org; Mon, 24 Oct 2016 15:52:51 -0400 From: Eduardo Habkost Date: Mon, 24 Oct 2016 17:52:15 -0200 Message-Id: <1477338745-20776-7-git-send-email-ehabkost@redhat.com> In-Reply-To: <1477338745-20776-1-git-send-email-ehabkost@redhat.com> References: <1477338745-20776-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PULL v2 06/16] pc: apic_common: Restore APIC ID to initial ID on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , Richard Henderson , qemu-devel@nongnu.org, Igor Mammedov From: Igor Mammedov 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 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); -- 2.7.4