[PATCH 0/2] Kexec enabling in TDX guest
Kirill A. Shutemov
kirill.shutemov at linux.intel.com
Fri Feb 24 06:30:04 PST 2023
On Wed, Feb 22, 2023 at 10:26:22AM +0000, David Woodhouse wrote:
> On Tue, 2023-02-14 at 02:48 +0300, Kirill A. Shutemov wrote:
> > The patch brings basic enabling of kexec in TDX guests.
> >
> > By "basic enabling" I mean, kexec in the guests with a single CPU.
> > TDX guests use ACPI MADT MPWK to bring up secondary CPUs. The mechanism
> > doesn't allow to put a CPU back offline if it has woken up.
> >
> > We are looking into this, but it might take time.
>
> Can't we park the secondary CPUs in a purgatory-like thing of their own
> and wake them from there when we want them?
>
> Patches for that were floating around once, although the primary reason
> then was latency, and we decided to address that differently by doing
> the bringup in parallel instead.
That's plan B. It is suboptimal. kexec() can happen into something that is
not Linux which will not be able to wake up CPUs.
Ideally, it has to be addressed on BIOS level: it has to provide a way to
offline CPUs, putting it back to pre-wakeup state.
--
Kiryl Shutsemau / Kirill A. Shutemov
More information about the kexec
mailing list