public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] x86/apic: reset LDR in clear_local_APIC
@ 2019-08-26 10:15 Bandan Das
  2019-08-26 10:15 ` [PATCH v2 1/2] x86/apic: Do not initialize LDR and DFR for bigsmp Bandan Das
  2019-08-26 10:15 ` [PATCH v2 2/2] x86/apic: include the LDR when clearing out apic registers Bandan Das
  0 siblings, 2 replies; 5+ messages in thread
From: Bandan Das @ 2019-08-26 10:15 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov; +Cc: x86, linux-kernel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-26 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-26 10:15 [PATCH v2 0/2] x86/apic: reset LDR in clear_local_APIC Bandan Das
2019-08-26 10:15 ` [PATCH v2 1/2] x86/apic: Do not initialize LDR and DFR for bigsmp Bandan Das
2019-08-26 18:09   ` [tip: x86/urgent] " tip-bot2 for Bandan Das
2019-08-26 10:15 ` [PATCH v2 2/2] x86/apic: include the LDR when clearing out apic registers Bandan Das
2019-08-26 18:09   ` [tip: x86/urgent] x86/apic: Include the LDR when clearing out APIC registers tip-bot2 for Bandan Das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox