Skip to content

Alternate Injection: Secure Interrupt Delivery for SEV-SNP Guests - Guest Support

Melody Wang lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/sev: Add support for Alternate Injectionarch/x86/Kconfig arch/x86/boot/compressed/sev.c arch/x86/coco/core.c +4 more+30 -41 reply
2/7x86/apic: Add an SVSM APIC driverarch/x86/coco/sev/svsm.c arch/x86/include/asm/sev.h arch/x86/kernel/apic/Makefile +1 more+268 -07 replies
3/7x86/sev: Allow the guest to configure interrupt vectors for the hypervisorarch/x86/boot/startup/sev-startup.c arch/x86/boot/startup/sme.c arch/x86/include/asm/sev.h+27 -01 reply
4/7x86/sev: Route unsupported APIC register accesses to the hypervisor APIC emulationarch/x86/coco/sev/core.c arch/x86/include/asm/sev-common.h arch/x86/include/asm/sev.h +2 more+22 -181 reply
5/7x86/sev: Add a function to contain all SEV-specific setup operationsarch/x86/boot/compressed/sev.c arch/x86/include/asm/sev.h drivers/firmware/efi/libstub/x86-stub.c+18 -141 reply
6/7x86/sev: Register the guest with the SVSM APIC protocolarch/x86/boot/compressed/sev.c arch/x86/boot/compressed/sev.h+23 -02 replies
7/7x86/sev: Indicate that Alternate Injection is supported in the guestarch/x86/boot/compressed/sev.c+8 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Alternate Injection: Secure Interrupt Delivery for SEV-SNP Guests - Guest Support

Alternate Injection is a method to provide secure interrupt delivery for SEV-SNP guests against malicious injection attacks. By handing over the control of the interrupt injection to the guest itself, the security is applied. Alternate Injection use Secure VM Service Module (SVSM), and APIC emulation in the SVSM to secure interrupt delivery.

This is the guest side patches. The patch set includes the following:
1. Add support for enabling Alternate Injection.
2. Add support for the SVSM APIC protocol which uses a subset of the X2APIC MSRs.
3. Add support to allow the guest OS to request Alternate Injection.

Thanks,
Melody

Melody Wang (7):
x86/sev: Add support for Alternate Injection
x86/apic: Add an SVSM APIC driver
x86/sev: Allow the guest to configure interrupt vectors for the
hypervisor
x86/sev: Route unsupported APIC register accesses to the hypervisor
APIC emulation
x86/sev: Add a function to contain all SEV-specific setup operations x86/sev: Register the guest with the SVSM APIC protocol x86/sev: Indicate that Alternate Injection is supported in the guest

 arch/x86/Kconfig                        |  14 ++
 arch/x86/boot/compressed/sev.c          |  37 +++-
 arch/x86/boot/compressed/sev.h          |   6 +
 arch/x86/boot/startup/sev-startup.c     |  15 ++
 arch/x86/boot/startup/sme.c             |   3 +
 arch/x86/coco/core.c                    |   3 +
 arch/x86/coco/sev/core.c                |  14 +-
 arch/x86/coco/sev/svsm.c                |   6 +
 arch/x86/include/asm/cpufeatures.h      |   1 +
 arch/x86/include/asm/msr-index.h        |   4 +-
 arch/x86/include/asm/sev-common.h       |   1 +
 arch/x86/include/asm/sev.h              |  29 ++-
 arch/x86/kernel/apic/Makefile           |   1 +
 arch/x86/kernel/apic/svsm_apic.c        | 255 ++++++++++++++++++++++++
 arch/x86/kernel/apic/x2apic_savic.c     |   8 +-
 drivers/firmware/efi/libstub/x86-stub.c |  20 +-
 include/linux/cc_platform.h             |   8 +
 17 files changed, 392 insertions(+), 33 deletions(-)
 create mode 100644 arch/x86/kernel/apic/svsm_apic.c
Signature · 1 line
2.43.0