Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3980912ybl; Mon, 26 Aug 2019 03:40:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUvmukIDLtTwM413vazxKC9ks9Stm3HNcnO5gglVbJF0XjaWAckaKn7isKGoUYUGha0IzI X-Received: by 2002:aa7:9609:: with SMTP id q9mr18732977pfg.232.1566816029714; Mon, 26 Aug 2019 03:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566816029; cv=none; d=google.com; s=arc-20160816; b=uRB9GiAZJQNOHZKla43ZS52dD5SjsABD5w5XveZXP5TcNU+//oTLi+5j8fO8vpgG60 rpWj2s6Pr9WBQzTmk4d+rVy/uFOqEq9s+7hz1yU3aHLetRxxKHNtasxuVckknT2uz6Pf xGbmrHzmfvAv0t9wmmWKiHGwEgYP/5lHNE/0GQLOzbqul5CkjE2Upz7DQCMOm5sBKdNG 0VfS6L8arhFVN0Z5CCpGJJYKmPylFbbPjexUKiwPgqdJUaGHYyG/HIkRbK1SQjfJLcrS JNHEz+UDu5XZGjICvbHwcNr1ictsAoUsI/L6fn3KgaljOHKRqHbMXxfErO0RNUO3nrgg fCZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OCdAuOBQ7QYC3udPHHgyiw4InjGqXSho/vuuuuQOKgo=; b=m9oC8DnKQVtsjRTP8c/SyR9Trr8dZrcvwHra2ENPzImYeRJ3IJ5ysDfK+UZh95Y1oI L3naU7lpiKV77IeoIGOJXTznR1pc4FOCThbprDyx9z8IJtKA6RKWw4Mi28QfHJgG22dP 2NyqJfC+ewGz/cNtW76zZAMTVEDe49Hz+3jtF++FIFDlZXPcNNuzj+9n+tlDmDUS0nl9 fkkMbTxKEVqHtp+GWE+4/pqMsZ+UcEindHhl3sLtQTzOdpltnyzvwv4gMFsAIqo9Ecld Xvw2NRvdvHK3q1dsXlxtn2caUnwCgF/07mzfvdyRV6D9mSow2+ARGpP/N+Y/jiS11bQy 7fmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si9219558plp.387.2019.08.26.03.40.14; Mon, 26 Aug 2019 03:40:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730749AbfHZKPu (ORCPT + 99 others); Mon, 26 Aug 2019 06:15:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56480 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbfHZKPt (ORCPT ); Mon, 26 Aug 2019 06:15:49 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C84B530832C8; Mon, 26 Aug 2019 10:15:49 +0000 (UTC) Received: from gigantic.usersys.redhat.com (helium.bos.redhat.com [10.18.17.132]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3304A608C1; Mon, 26 Aug 2019 10:15:49 +0000 (UTC) From: Bandan Das To: Thomas Gleixner , Ingo Molnar , Borislav Petkov Cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] x86/apic: reset LDR in clear_local_APIC Date: Mon, 26 Aug 2019 06:15:11 -0400 Message-Id: <20190826101513.5080-1-bsd@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Mon, 26 Aug 2019 10:15:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: 1/2: clear out the bogus initialization in bigsmp_init_apic_ldr 2/2: reword commit message as suggested by Thomas v1 posted at https://lkml.org/lkml/2019/8/14/1 On a 32 bit RHEL6 guest with greater than 8 cpus, the kdump kernel hangs when calibrating apic. This happens because when apic initializes bigsmp, it also initializes LDR even though it probably wouldn't be used. When booting into kdump, KVM apic incorrectly reads the stale LDR values from the guest while building the logical destination map even for inactive vcpus. While KVM apic can be fixed to ignore apics that haven't been enabled, a simple guest only change can be to just clear out the LDR. Bandan Das (2): x86/apic: Do not initialize LDR and DFR for bigsmp x86/apic: include the LDR when clearing out apic registers arch/x86/kernel/apic/apic.c | 4 ++++ arch/x86/kernel/apic/bigsmp_32.c | 24 ++---------------------- 2 files changed, 6 insertions(+), 22 deletions(-) -- 2.20.1