From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn3TE-0001A3-IR for qemu-devel@nongnu.org; Thu, 22 Sep 2016 08:51:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn3TC-00057Y-Q4 for qemu-devel@nongnu.org; Thu, 22 Sep 2016 08:51:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn3TC-00057S-Jr for qemu-devel@nongnu.org; Thu, 22 Sep 2016 08:51:18 -0400 From: Igor Mammedov Date: Thu, 22 Sep 2016 14:50:49 +0200 Message-Id: <1474548655-157373-9-git-send-email-imammedo@redhat.com> In-Reply-To: <1474548655-157373-1-git-send-email-imammedo@redhat.com> References: <1474548655-157373-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v2 08/14] pc: apic_common: restore APIC ID to initial ID on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: rkrcmar@redhat.com, ehabkost@redhat.com, mst@redhat.com, kevin@koconnor.net, pbonzini@redhat.com, lersek@redhat.com, chao.gao@intel.com, peterx@redhat.com, liuxiaojian6@huawei.com APIC ID should be restored to initial APIC ID state after Reset and Power-On. Signed-off-by: Igor Mammedov --- 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 125af9d..e246cf3 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -242,6 +242,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