Re: [PATCH v2] KVM: SEV: Return INVALID_INPUT on SNP req/resp buffer access failure

From: Sean Christopherson

Date: Fri Oct 02 2026 - 17:12:40 EST


On Wed, 23 Sep 2026 20:18:12 +0000, Jacky Li wrote:
> Currently, snp_handle_(ext_)guest_req() returns -EIO when
> kvm_{read/clear}_guest() fails while accessing guest-provided buffers.
> Returning -EIO causes KVM_RUN to exit to userspace, likely killing the VM.
>
> Fix this by returning GHCB_HV_RESP_MALFORMED_INPUT with sub-error code
> GHCB_ERR_INVALID_INPUT to the guest and resuming the vCPU.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] KVM: SEV: Return INVALID_INPUT on SNP req/resp buffer access failure
https://github.com/kvm-x86/linux/commit/003892d6e802

--
https://github.com/kvm-x86/linux/tree/next