[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bffb5c5c2468285aabf2ed47ce4c41db5b79f13f.camel@intel.com>
Date: Fri, 22 Dec 2023 11:38:14 +0000
From: "Huang, Kai" <kai.huang@...el.com>
To: "kirill.shutemov@...ux.intel.com" <kirill.shutemov@...ux.intel.com>
CC: "kexec@...ts.infradead.org" <kexec@...ts.infradead.org>,
"linux-coco@...ts.linux.dev" <linux-coco@...ts.linux.dev>,
"ashish.kalra@....com" <ashish.kalra@....com>, "dave.hansen@...ux.intel.com"
<dave.hansen@...ux.intel.com>, "thomas.lendacky@....com"
<thomas.lendacky@....com>, "Hunter, Adrian" <adrian.hunter@...el.com>,
"Reshetova, Elena" <elena.reshetova@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"mingo@...hat.com" <mingo@...hat.com>, "seanjc@...gle.com"
<seanjc@...gle.com>, "tglx@...utronix.de" <tglx@...utronix.de>,
"bhe@...hat.com" <bhe@...hat.com>, "Nakajima, Jun" <jun.nakajima@...el.com>,
"peterz@...radead.org" <peterz@...radead.org>, "bp@...en8.de" <bp@...en8.de>,
"Edgecombe, Rick P" <rick.p.edgecombe@...el.com>, "rafael@...nel.org"
<rafael@...nel.org>, "sathyanarayanan.kuppuswamy@...ux.intel.com"
<sathyanarayanan.kuppuswamy@...ux.intel.com>, "x86@...nel.org"
<x86@...nel.org>
Subject: Re: [PATCHv4 14/14] x86/acpi: Add support for CPU offlining for ACPI
MADT wakeup method
On Fri, 2023-12-22 at 14:19 +0300, kirill.shutemov@...ux.intel.com wrote:
> On Tue, Dec 05, 2023 at 11:36:55PM +0000, Huang, Kai wrote:
> >
> > > +
> > > +static void acpi_mp_stop_other_cpus(int wait)
> > > +{
> > > + smp_shutdown_nonboot_cpus(smp_processor_id());
> > > +}
> >
> > Is this and ...
> >
> > + smp_ops.stop_other_cpus = acpi_mp_stop_other_cpus;
> >
> > ... this below still needed?
> >
> > I think the current native_stop_other_cpus() should just work given you have set
> > up ...
> >
> > + smp_ops.crash_play_dead = crash_acpi_mp_play_dead;
> >
> > ... for TDX guest?
>
> To make it work stop_this_cpu() would need to be modified to use
> smp_ops.crash_play_dead() instead of native_halt(). But name of the
> callback doesn't match the function, so I renamed it to
> smp_ops.stop_this_cpu().
Seems reasonable to me. Thanks.
Powered by blists - more mailing lists