Skip to content

Extend KVM_HC_MAP_GPA_RANGE api to allow retry

Sagi Shahar kvm linux-coco lkml 4 versions – Applied

Status from this message: Applied to kvm-x86 misc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyApplied
  2. v32 patches 6 repliesSuperseded
  3. v21 patch 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch8 repliesSuperseded

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: TDX: Allow userspace to return errors to guest for MAPGPADocumentation/virt/kvm/api.rst arch/x86/kvm/vmx/tdx.c arch/x86/kvm/x86.h+30 -70 replies
2/2KVM: SEV: Restrict userspace return codes for KVM_HC_MAP_GPA_RANGEarch/x86/kvm/svm/sev.c+10 -20 replies

Reviews trailers per patch

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

PatchMichael Roth
1/2R-b
2/2R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/2] Extend KVM_HC_MAP_GPA_RANGE api to allow retry

In some cases, userspace might decide to split MAP_GPA requests and retry them the next time the guest runs. One common case is MAP_GPA requests received right before intrahost migration when userspace might decide to complete the request after the migration is complete to reduce blackout time.

This is v4 of the series.

Changes from v3[1]:
* Rebased on top of v7.0-rc2.
* Switch "if" statement to switch-case in tdx_complete_vmcall_map_gpa() as suggested by Michael Roth.

[1] https://lore.kernel.org/lkml/[email protected]/

Sagi Shahar (1):
KVM: SEV: Restrict userspace return codes for KVM_HC_MAP_GPA_RANGE

Vishal Annapurve (1):
KVM: TDX: Allow userspace to return errors to guest for MAPGPA

 Documentation/virt/kvm/api.rst |  3 +++
 arch/x86/kvm/svm/sev.c         | 12 ++++++++++--
 arch/x86/kvm/vmx/tdx.c         | 28 +++++++++++++++++++++-------
 arch/x86/kvm/x86.h             |  6 ++++++
 4 files changed, 40 insertions(+), 9 deletions(-)
Signature · 1 line
2.53.0.473.g4a7958ca14-goog