]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SEV: Restrict userspace return codes for KVM_HC_MAP_GPA_RANGE
authorSagi Shahar <sagis@google.com>
Thu, 5 Mar 2026 22:26:27 +0000 (22:26 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 28 May 2026 00:15:56 +0000 (17:15 -0700)
commit5d40e5b49442437fe9dfd2577f7b17c07dbefb92
tree01df7624c8578e6df4c51b26b5f1974a811b8ba6
parent3e2dec1ede0a772c4d7cebd4130a7c4a12de2789
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>
arch/x86/kvm/svm/sev.c