Skip to content

x86/sev: Rework SNP Guest Request

Alexey Kardashevskiy lkml 2 versions – Applied

Status from this message: The following commit has been merged into the x86/sev branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesApplied
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4virt: sev-guest: Contain snp_guest_request_ioctl in sev-guestarch/x86/coco/sev/core.c arch/x86/include/asm/sev.h drivers/virt/coco/sev-guest/sev-guest.c+23 -320 replies
2/4x86/sev: Allocate request in TSC_INFO_REQ on stackarch/x86/coco/sev/core.c+12 -180 replies
3/4x86/sev: Document requirement for linear mapping of Guest Request buffersarch/x86/coco/sev/core.c+9 -00 replies
4/4x86/sev: Drop unnecessary parameter in snp_issue_guest_requestarch/x86/coco/sev/core.c+3 -20 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchTom LendackyDionna Glaze
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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/[email protected]

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(-)
Signature · 1 line
2.49.0