public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Baoquan He <bhe@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	x86@kernel.org, kexec@lists.infradead.org, dgilbert@redhat.com
Subject: Re: [PATCH] Revert "x86/apic/x2apic: Implement IPI shorthands support"
Date: Tue, 20 Dec 2022 20:38:39 +0800	[thread overview]
Message-ID: <Y6Gsz4mqnZCtC9rn@MiWiFi-R3L-srv> (raw)
In-Reply-To: <Y6GextAcO4OZig3Y@hirez.programming.kicks-ass.net>

On 12/20/22 at 12:38pm, Peter Zijlstra wrote:
> On Tue, Dec 20, 2022 at 01:34:58PM +0800, Baoquan He wrote:
> > This reverts commit 43931d350f30c6cd8c2f498d54ef7d65750abc92.
> > 
> > On kvm guest with 4 cpus deployed, when adding 'nr_cpus=2' to normal
> > kernel's cmdline, and triggering crash to jump to kdump kernel, kdump
> > kernel will stably hang. Reverting commit 43931d350f30 ("x86/apic/x2apic:
> > Implement IPI shorthands support") can fix it.
> > 
> > The problem will disappear if removing 'nr_cpus=2' from normal kerne's
> > cmdline.
> 
> And the root cause for this is... ? Does the kvm x2apic emulation
> somehow get upset when we shorthand CPUs that haven't been initialized?

Thanks for checking.

I haven't figure out the root cause. I haven't read the apic code for
long time, and not familiar with the kvm code. So raise the issue to
upstream.

I can do testing if any suggestion.

Add our virt dev Dr. David Alan Gilbert to CC.


  reply	other threads:[~2022-12-20 12:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-20  5:34 [PATCH] Revert "x86/apic/x2apic: Implement IPI shorthands support" Baoquan He
2022-12-20  5:41 ` kdump kernel randomly hang with tick_periodic call trace on bare metal system Baoquan He
2022-12-20  5:51   ` Baoquan He
2022-12-21 15:46     ` Guilherme G. Piccoli
2022-12-22  4:09       ` Baoquan He
2023-01-09 21:57   ` Thomas Gleixner
2023-01-14  2:08     ` Baoquan He
2023-01-16  9:08     ` Baoquan He
2023-01-16 16:27     ` [tip: x86/urgent] x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL tip-bot2 for Thomas Gleixner
2022-12-20 11:38 ` [PATCH] Revert "x86/apic/x2apic: Implement IPI shorthands support" Peter Zijlstra
2022-12-20 12:38   ` Baoquan He [this message]
2023-01-04 15:18     ` Dr. David Alan Gilbert
2023-01-09 21:59 ` Thomas Gleixner
2023-01-10  2:24   ` Baoquan He
2023-01-17  8:27     ` Baoquan He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y6Gsz4mqnZCtC9rn@MiWiFi-R3L-srv \
    --to=bhe@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox