Re: [PATCH v2 6/8] x86/sev: Register the guest with the SVSM APIC protocol

From: Ard Biesheuvel

Date: Mon Sep 14 2026 - 16:08:06 EST



On Mon, 14 Sep 2026, at 02:57, Melody Wang wrote:
> The SVSM APIC protocol supports 5 calls. SVSM_APIC_CONFIGURE_EMULATION
> (shortened to SVSM_APIC_CONFIG_EMULATION for brevity), call 1, provides
> the controls whether the guest can make use of the SVSM APIC protocol.
>
> Implement this call, and register Alternate Injection for the guest
> by default.
>
> Signed-off-by: Melody Wang <huibo.wang@xxxxxxx>
> ---
> arch/x86/boot/compressed/sev.c | 17 +++++++++++++++++
> arch/x86/boot/compressed/sev.h | 6 ++++++
> 2 files changed, 23 insertions(+)
>

Does this need to happen in the EFI stub and/or decompressor? We have swathes
of early SEV-SNP boot code in the kernel proper; could it be done there?