From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: "Jürgen Groß" <jgross@suse.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
"Jan Beulich" <jbeulich@suse.com>
Subject: Re: MTRR init sequence in Xen
Date: Thu, 22 Jan 2026 18:36:53 +0100 [thread overview]
Message-ID: <aXJgNUxe3kiqlgaW@Mac.lan> (raw)
In-Reply-To: <e46ceae9-0680-4fb9-adb9-84530745fa4d@citrix.com>
On Thu, Jan 22, 2026 at 05:21:12PM +0000, Andrew Cooper wrote:
> On 22/01/2026 3:56 pm, Jürgen Groß wrote:
> > Just as a heads up: a hardware partner of SUSE has seen hard lockups
> > of the Linux kernel during boot on a new machine. This machine has
> > 8 NUMA nodes and 960 CPUs. The hang occurs in roughly 1.5% of the boot
> > attempts in MTRR initialization of the APs.
> >
> > I have sent a small patch series to LKML which seems to fix the problem:
> > https://lore.kernel.org/lkml/20260121141106.755458-1-jgross@suse.com/
> >
> > As Xen MTRR handling is taken from the Linux kernel, I guess the same
> > problem could happen in Xen, too.
> >
> > As the hang always occurred while waiting for the lock, which is
> > serializing the single CPUs doing MTRR initialization, my solution was
> > to eliminate the lock, allowing all APs to init MTRRs in parallel.
> >
> > Maybe we want to do the same in Xen.
>
> I suspect Xen might be insulated by the fact that we don't have parallel
> AP start (yet), so we don't have the whole system competing on the
> spinlock at once.
Oh, I think I've misunderstood the issue. Linux is doing MTRR init in
the AP startup path, and so if it takes too long Linux will report
that the AP has failed to start.
This is not an issue on Xen because MTRR initialization is deferred
until all APs are up, and hence is not part of the timed AP start
path. This optimization was done in:
0d22c8d92c6c x86: CPU synchronization while doing MTRR register update
So even if we did parallel AP startup we won't likely be affected,
because we would still defer the MTRR setup until all APs are up.
Regards, Roger.
next prev parent reply other threads:[~2026-01-22 17:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 15:56 MTRR init sequence in Xen Jürgen Groß
2026-01-22 17:18 ` Roger Pau Monné
2026-01-22 19:22 ` Jürgen Groß
2026-01-22 17:21 ` Andrew Cooper
2026-01-22 17:36 ` Roger Pau Monné [this message]
2026-01-22 19:24 ` Jürgen Groß
2026-01-23 9:24 ` Roger Pau Monné
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=aXJgNUxe3kiqlgaW@Mac.lan \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.