]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/hyperv/vtl: Use the wakeup mailbox to boot secondary CPUs
authorRicardo Neri <ricardo.neri-calderon@linux.intel.com>
Wed, 4 Mar 2026 23:41:21 +0000 (15:41 -0800)
committerDexuan Cui <decui@microsoft.com>
Thu, 28 May 2026 20:01:26 +0000 (20:01 +0000)
commit7a035678fc2bdee81881170764ef08a91a076147
tree1899e5ab0cfbb3061796663be50ec7a627393a9e
parent80200341197a799fe39da4e9da61bde4d23ec7ec
x86/hyperv/vtl: Use the wakeup mailbox to boot secondary CPUs

The hypervisor is an untrusted entity for TDX guests. It cannot be used
to boot secondary CPUs. The function hv_vtl_wakeup_secondary_cpu() cannot
be used.

Instead, the virtual firmware boots the secondary CPUs and places them in
a state to transfer control to the kernel using the wakeup mailbox. The
firmware enumerates the mailbox via either an ACPI table or a DeviceTree
node.

If the wakeup mailbox is present, the kernel updates the APIC callback
wakeup_secondary_cpu_64() to use it.

Reviewed-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Signed-off-by: Dexuan Cui <dexuan@kernel.org>
arch/x86/hyperv/hv_vtl.c