[PATCH v2 0/4] x86/sev: Rework SNP Guest Request

From: Alexey Kardashevskiy
Date: Wed Jun 11 2025 - 00:09:12 EST


Started as a part of the fix for
ae596615d93d ("virt: sev-guest: Reduce the scope of SNP command mutex")

these are the remainder of followup fixes/improvements as
the SNP Guest Request code evolved enough to make it a bit hard to
follow.

Changes:
v2:
* added RBs
* adjusted grammar
* rebased on top of v6.16-rc1


The previous conversation is here:
https://lore.kernel.org/r/20250505141238.4179623-1-aik@xxxxxxx

This is based on sha1
19272b37aa4f Linus Torvalds "Linux 6.16-rc1".

Please comment. Thanks.



Alexey Kardashevskiy (4):
virt: sev-guest: Contain snp_guest_request_ioctl in sev-guest
x86/sev: Allocate request in TSC_INFO_REQ on stack
x86/sev: Document requirement for linear mapping of Guest Request
buffers
x86/sev: Drop unnecessary parameter in snp_issue_guest_request

arch/x86/include/asm/sev.h | 10 ++-
arch/x86/coco/sev/core.c | 72 +++++++++-----------
drivers/virt/coco/sev-guest/sev-guest.c | 9 ++-
3 files changed, 43 insertions(+), 48 deletions(-)

--
2.49.0