KVM: SEV: Restrict userspace return codes for KVM_HC_MAP_GPA_RANGE

To align with the updated TDX api that allows userspace to request
that guests retry MAP_GPA operations, make sure that userspace is only
returning EINVAL or EAGAIN as possible error codes.

Reviewed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Sagi Shahar <sagis@google.com>
Link: https://patch.msgid.link/20260305222627.4193305-3-sagis@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
Sagi Shahar 2026-03-05 22:26:27 +00:00 • committed by Sean Christopherson
commit 5d40e5b494