Re: [PATCH] x86: always park offline CPUs

George Dunlap <[email protected]>
Newsgroups gmane.comp.emulators.xen.devel
Message-ID <CAFLBxZb=n9T1MhgQyOZOns=3Ns6MzyTN08s2ruBo4oDQXypmUw@mail.gmail.com>
On Wed, Aug 26, 2026 at 1:36 PM Jan Beulich <[email protected]> wrote:
>
> While on AMD (or Hygon) CPUs the situation isn't as bad wrt broadcasting
> of #MC, some "multicast" can still happen. Therefore the reasoning to park
> CPUs rather than fully offlining them applies everywhere.
>
> Don't retain the dependency on the "mce=" cmdline option either: That
> option may best be dropped as well, as not enabling MCE will result in a
> shutdown when #MC would otherwise be raised.
>
> Drop the global variable, using a #define (just like common code does)
> instead. Outside of common code, simplify expressions / code accordingly.
> (In common code we still have to cater for x86 wanting it different from
> everyone else.)
>
> Suggested-by: Andrew Cooper <[email protected]>
> Signed-off-by: Jan Beulich <[email protected]>
> ---
> As it was never actually used after its introduction, we may want to
> further consider dropping CPU_REMOVE again.
>
> I was almost certain that we would have at least one place (presumably a
> CPU notifier handler) were we assumed no parking for AMD/Hygon. Yet I
> couldn't find anything; did I overlook the crucial bits?

FWIW, the per-CPU stack mapping bit of the ASI series I have would
almost certainly have tripped over such an instance if it existed, but
didn't.

I've tested this patch on an Intel box, whose behavior in theory
shouldn't change.  Not sure if that warrants a Tested-by, given that
the main change should happen on an AMD box.

 -George
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.