public inbox for linux-coco@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Extend KVM_HC_MAP_GPA_RANGE api to allow retry
@ 2026-03-05 22:26 Sagi Shahar
  2026-03-05 22:26 ` [PATCH v4 1/2] KVM: TDX: Allow userspace to return errors to guest for MAPGPA Sagi Shahar
  2026-03-05 22:26 ` [PATCH v4 2/2] KVM: SEV: Restrict userspace return codes for KVM_HC_MAP_GPA_RANGE Sagi Shahar
  0 siblings, 2 replies; 3+ messages in thread
From: Sagi Shahar @ 2026-03-05 22:26 UTC (permalink / raw)
  To: Vishal Annapurve, Sean Christopherson, Paolo Bonzini, Dave Hansen,
	Kiryl Shutsemau, Rick Edgecombe
  Cc: Thomas Gleixner, Borislav Petkov, H. Peter Anvin, Michael Roth,
	Tom Lendacky, x86, kvm, linux-kernel, linux-coco, Sagi Shahar

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/20260206222829.3758171-1-sagis@google.com/

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(-)

-- 
2.53.0.473.g4a7958ca14-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-05 22:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 22:26 [PATCH v4 0/2] Extend KVM_HC_MAP_GPA_RANGE api to allow retry Sagi Shahar
2026-03-05 22:26 ` [PATCH v4 1/2] KVM: TDX: Allow userspace to return errors to guest for MAPGPA Sagi Shahar
2026-03-05 22:26 ` [PATCH v4 2/2] KVM: SEV: Restrict userspace return codes for KVM_HC_MAP_GPA_RANGE Sagi Shahar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox